B4J Question Webserver that makes http requests as well as accepting them

j_o_h_n

Active Member
Licensed User
I have a jserver webserver.
The b4j program that wraps(?) this
will now also need to make http requests
of its own based on what is in a database.
What is the best way to set that up that won't interfere
with it listening for incoming requests.
I was thinking of a timer whose tick event made a call to
a resumable sub.
Is there a better way?
Thank you.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I have a jserver webserver.
The b4j program that wraps(?) this
jServer is a library. The B4J program is the server itself.

What is the best way to set that up that won't interfere
with it listening for incoming requests.
No need to do anything special.

I was thinking of a timer whose tick event made a call to
a resumable sub.
Is there a better way?
Yes. Use background workers: [server] Background Workers

Also relevant: Resumable Subs (wait for / sleep) in server handlers
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…