Home » Support » Forum » Detecting ObjectDB alive

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

#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
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login