openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joe <fischauto...@yahoo.de>
Subject Re: testing for running OpenEJB server
Date Tue, 22 Feb 2011 08:25:57 GMT
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?


Mime
View raw message