jeudi 21 mai 2015

JavaEE notification when EJB went offline

is it possible in JavaEE (JBoss AS5.1, EJB 3.0) to get notified when a jboss instance went offline? Specifically I want to receive a notification when a previously looked up ejb is not longer available or is available again (the ejb is not clustered, but that's another story).

My current workaround is to call a method called isAvailable which always returns true, when an exception occures I know the ejb is down. This online check obviously can't be the best way to do this.

Aucun commentaire:

Enregistrer un commentaire