Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5015

Temp Queue gets deleted on close of wrong connection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.9.0
    • 5.10.1, 5.11.0
    • None
    • None

    Description

      My scenario is this:
      connection1:
      create temp queue tq1
      send msg to qeue1 with replyTo tq1
      wait for reply on tq1

      connection2:
      receive message on queue1
      send to replyTo address which is tq1

      In some cases the temp queue gets deleted in the close method of connection2.

      The scenario is kind of an edge case as it only happens if I use a PooledConnectionFactory and only if I before my scenario above open a connection and session and close the connection before the session.

      So strictly speaking my code has an error.

      I think the problem is in the PooledConnection factory. It seems to reuse a connection or session in the wrong way. I will attach a test case

      Attachments

        1. PooledConnectionTempQueueTest.java
          3 kB
          Christian Schneider

        Activity

          People

            tabish Timothy A. Bish
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: