3 Replies Latest reply on Dec 12, 2006 6:15 AM by me me

    Help needed testing JMS connection failure - 4.0.3SP1

    Matt Veitas Newbie

      I am in need of some help with testing out our reconnect logic for our JMS based code. What is the best way to simulate a JMS connection failure?

      I have set an ExceptionListener on the connection object, but when I try an stop the destination from the jmx-console, no exception is being thrown. I am using JBoss 4.0.3SP1.

      connection.setExceptionListener( new ExceptionListener()
      {
       public void onException( JMSException jmsException )
       {
       System.out.println( "@@@@@@@@@@@@" );
       }
      });