Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7818

[AMQP 0-10] Messages published into non existing queue are discarded on 0-10 path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.18, 0.20, 0.22, 0.24, 0.26, 0.28, 0.30, 0.32, qpid-java-6.0, qpid-java-6.0.1, qpid-java-6.0.2, qpid-java-6.0.3, qpid-java-6.0.4, qpid-java-6.0.5, qpid-java-6.1, qpid-java-6.0.6, qpid-java-6.1.1, qpid-java-6.1.2, qpid-java-6.0.7, qpid-java-6.1.3
    • Fix Version/s: Future
    • Component/s: Broker-J, JMS AMQP 0-x
    • Labels:
      None

      Description

      Messages published with AMQP 0-10 into non existing queue destination are discarded whilst on AMQP 0-9 and 1-0 the error is reported. The following code does not throw JMS exception as expected

             Connection connection =  ...
              connection.start();
              Session session = connection.createSession(true, Session.SESSION_TRANSACTED);
              MessageProducer messageProducer = session.createProducer(null);
      
              try
              {
                  messageProducer.send(session.createQueue("nonExistingQueue"), session.createTextMessage("testMessage"));
                  session.commit();
                  fail("Expected exception was not thrown");
              }
              catch (JMSException e)
              {
                  // pass
              }
      

      Such behaviour is not JMS compliant: InvalidDestinationException is expected to be thrown in this case.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              orudyy Alex Rudyy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: