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

Details

    • Bug
    • Resolution: Done
    • 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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: