Hi,
If you are running it on a linux box, check this link.
http://stackoverflow.com/questions/2735926/how-to-capture-pid-of-a-linux-daemon-run-from-init-d
Hm i am looking for ease of use and in a more platform independet way.
I hoped for a feature directly supported by the container.
Currently i am thinking of writing two Java methods:
boolean isContainerRunning()
1. connect to ejbd port
2. if succesful: return true, otherwise false
boolean areEJBsInvocable()
1. invoke EJB method
2. if result is as expected return true, otherwise false
Would this be a reasonable approach?