ObjectDB ObjectDB

Detecting ObjectDB alive

#1

Hi, I'm wondering how best to be able to detect if ObjectDb Server is alive?

For:

a) from a java process - I'm guessing you could try and grab a Persistence Manager and/or listen for a Disconnection Exception??

b) from a NodeJs runtime - I'm guessing you could either try and grab the ObjectDb server port and that won't be possible as long as the Objectdb Server is running. Is there a way to polling server from TCP and/or HTTP ?  

I guess there is also the linux shell, i.e: checking the process, but I'd prefer to avoid that.

Thanks

David

edit
delete
#2

All these three options are possible, but maybe the best way to see that ObjectDB is actually functioning (and not just running and holding a port) is to test it periodically, e.g. by obtaining an EntityManager, making some operation against the database and then closing the EntityManager.

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.