2 Replies Latest reply on Jan 31, 2008 6:58 AM by Dimitri Kolke

    ActiveMQ - jBOSS ESB Issue

    Dimitri Kolke Newbie

      Hi Guys,

      i'm using ActiveMQ 5.0 with ESB 4.2.1 :


      <jms-provider name="ActiveMQ"
       connection-factory="ConnectionFactory"
       jndi-context-factory="org.apache.activemq.jndi.ActiveMQInitialContextFactory"
       jndi-URL="tcp://192.168.0.129:61616">
      
       <jms-bus busid="NK1Response">
       <jms-message-filter dest-type="QUEUE" dest-name="NK1ResponseX" />
       </jms-bus>
       <jms-bus busid="NK1ESBResponse">
       <jms-message-filter dest-type="QUEUE" dest-name="NK1ESBResponse" />
       </jms-bus>
      
       </jms-provider>
      


      it works fine, but sometimes provide JBOSS console this:



      javax.jms.IllegalStateException: The Session is closed
       at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:616)
       at org.apache.activemq.ActiveMQSession.getAcknowledgeMode(ActiveMQSession.java:471)
       at org.apache.activemq.ActiveMQQueueSession.getAcknowledgeMode(ActiveMQQueueSession.java:309)
       at org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.closeSession(JmsConnectionPool.java:257)
       at org.jboss.internal.soa.esb.couriers.JmsCourier.closeSession(JmsCourier.java:127)
       at org.jboss.internal.soa.esb.couriers.JmsCourier.cleanup(JmsCourier.java:117)
       at org.jboss.internal.soa.esb.couriers.JmsCourier.jmsConnectRetry(JmsCourier.java:276)
       at org.jboss.internal.soa.esb.couriers.JmsCourier.pickupPayload(JmsCourier.java:420)
       at org.jboss.internal.soa.esb.couriers.JmsCourier.pickup(JmsCourier.java:391)
       at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:223)
       at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:205)
       at org.jboss.soa.esb.listeners.message.MessageAwareListener.waitForEventAndProcess(MessageAwareListener.java:269)
       at org.jboss.soa.esb.listeners.message.MessageAwareListener.doRun(MessageAwareListener.java:253)
       at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.run(AbstractThreadedManagedLifecycle.java:115)
       at java.lang.Thread.run(Thread.java:619)
      
      


      Does anyone know what's wrong?