2 Replies Latest reply on Oct 27, 2005 4:35 PM by Keith Counsell

    ExceptionListener in MDB application

    Keith Counsell Newbie

      I have an MDB connecting to a remote Queue. It would be useful to have something functionally equivalent to an ExceptionListener for the remote connection so that I could email a trouble report (or whatever).

      Is there a J2EE-compliant or JBoss-specific way to do this?

      A ServletContextListener might be able to get and monitor its own Connection using an actual ExceptionListener, but that is forbidden in the J2EE 1.4 spec and would be non-portable even if it did work.

      I think that for JBoss I might be able to add an Interceptor to the JMS stack. That's JBoss-only, though, which is less than ideal. Also, I have very little clue on how to do that :)

      Any ideas or suggestions would be deeply appreciated. Thanks!