Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-1858

[A-MQ 6, jms pool] org.apache.activemq.jms.pool.PooledConnection will not start again after stop() was called.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.3
    • JBoss A-MQ 6.2.1
    • None
    • None
    • Hide

      attached a unit test to demonstrate the issue

      Show
      attached a unit test to demonstrate the issue

      According to the JMS 1.1 spec

      4.3.4 Pausing Delivery of Incoming Messages
      A connection’s delivery of incoming messages can be temporarily stopped
      using its stop() method. It can be restarted using its start() method.
      

      When start() is called after stop() on a org.apache.activemq.jms.pool.PooledConnection the following exception is received

      javax.jms.IllegalStateException: Connection closed
      	at org.apache.activemq.jms.pool.PooledConnection.assertNotClosed(PooledConnection.java:206)
      	at org.apache.activemq.jms.pool.PooledConnection.start(PooledConnection.java:94)
      

      When using a non pooled connection (coming org.apache.activemq.ActiveMQConnectionFactory) the start() seems to work after the stop() has been invoked.

              tbish@redhat.com Timothy Bish (Inactive)
              rhn-support-pfox Patrick Fox (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: