you could always write a simple piece of code that attempts to ping a well known service running on your JBoss instance (such as a servlet on 8080). This however only determines that the specific service is running (no exceptions) or that the entire JVM hasn't crashed. Trying to figure out if any of the services are throwing an exception is a bit trickier, I guess you could try and parse the server.log every now and then and see if there are any problems there.
The ping idea is okay but not the all in one approach i would prefer.
parsing the logfile is not what I wanted.
I thought about something like "java -jar somejar.jar someoption" that indicates wheter the server is running or not. somethings that comes along with the server itself.
is there anything?
How would the server know what all services you've deployed and then how to determine all your individual services are actually running correctly?
I cannot see an obvious way to do this since each and every service you deploy works differently, so any detection needs to be service specific, not an all-in-one solution.
Maybe you have a more specific problem you'd like to solve?