Android Question Client in a JRDC2 server

Serge Nova

Member
Hello everyone, is it possible to insert client functionalities into a JRDC2 server application?

The need is to check certain database information regularly (in the no-ui JRDC2 application) without having another application to do it.
 

OliverA

Expert
Licensed User
Longtime User
Hello everyone, is it possible to insert client functionalities into a JRDC2 server application

Sure.

One way, use a timer in the Main module to call a sub periodically. Then add your DBRequestMananger to your project and write JRDC2 client code as usual.

Another option is to use one or more background workers (see https://www.b4x.com/android/forum/threads/server-background-workers.73269/). Just don't forget the StartMessageLoop as shown in the example code snippet (else your worker will finish on the first call to Sleep / Wait For and you will not be able to capture events in the worker's thread).
 
Upvote 1
Top