143 words

Detecting ObjectDB alive

#1
2016-11-18 01:03

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

dmoshal
dmoshal's picture
Joined on 2010-05-22
User Post #101
#2
2016-11-18 12:40

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)
support
support's picture
Joined on 2010-05-03
User Post #2,649

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel