B4J Question jRDC2 on MS Server, exiting after 20 mins

swan

Member
Hi everyone,
I have a problem with jRDC2 on Windows Server 2016 (VPS) connected to SQL Server Express 2014.
Everything works fine, I can connect to SQL Server via jRDC2 using a simple B4A app remotely and communicates fine, however after approx 20 mins jRDC2 unloads/exits. I can load it again but keeps unloading.
Has anyone else experienced this ?
 

swan

Member
Thanx Erel,
Some more info - java not installed on that server, so I created an exe package of jRDC2 and loaded that up onto the server.
Running jRDC2 simply by double clicking it. Because it's on a VPS this is done via Remote Desktop Connection.
I have noticed while RDP remain open jRDC2 also remains up. If I close the RDP thats when jRDC2 times-out as well. I did try running jRDC2 "as administrator" but same result.
Can't see in the logs when it occurs.
Perhaps find a way to start jRDC2 not via RDP.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Some more info - java not installed on that server, so I created an exe package of jRDC2 and loaded that up onto the server.
Don't. jServer shouldn't be packaged with a standalone package.

You don't need to install Java. Only copy it to the server.

[server] Run a Server on a VPS (linux orientated but it is the same idea on Windows)
 
Upvote 0

swan

Member
Thanx again Erel,
Starting to make sense now. However I have no experience with java, I'm confused about which files go where on the server now.
Also, can't find a windows alternative to nohup to start the process.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You just need to upload the JDK or JRE and start the server with path/to/java -jar <yourjar.jar>

Also, can't find a windows alternative to nohup to start the process.
You don't need it. On Linux the user processes are killed by default when the user logs out. I don't think that Windows server behaves the same.
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…