posted 21 years ago
If you want to check whether the JMS (actually Message queue) server is up, you can periodically lookup for the connecting factory in the directory server, if the factory is not bound you get a NamingException with a specific message, If you don't get that exception + message the JMS server might be up. But I am not sure whether the JNDI objects (like connection factory, destination) are unbound when the JMS server is shutdown, if not you can do an additional check when you create the respective connection objects.