0 Replies Latest reply on Feb 21, 2009 4:25 PM by Todd Smart

    JMS unable to recover when server enters standby

    Todd Smart Newbie

      Hello -

      I have an MDB that handles messages on a JMS topic.  In development, a laptop hosting our server may go into standby.  Upon awaking, the system is unable to reach the JMS topic ... reporting:

      Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error and reconnect.

      I understand how to handle this situation when not using EJB3 MDB annotations ... as shown here: http://www.jboss.org/community/docs/DOC-10931.

      However, I can not figure out how to register an exception listener when using EJB3 MDB annotations and Seam managed components.  Here is how my bean is annotated:

      @MessageDriven(activationConfig = {
                @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
                @ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/eventTopic") })
      public class EventListener implements MessageListener {

      Any advice much appreciated!