hi,
you can try to write a mbean which starts up with JBoss and start a cyclic check on the context (thread) or try to access with a class sheduled by JBoss (see sheduler, i would prefer this).
on Exception u can restart the service.
Reply to this message by going to Community
Start a new discussion in JNDI and Naming at Community