[jira] [Created] (QPID-7818) [AMQP 0-10] Messages are discarded when published into non existing queue destination

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (QPID-7818) [AMQP 0-10] Messages are discarded when published into non existing queue destination

JIRA jira@apache.org
Alex Rudyy created QPID-7818:
--------------------------------

             Summary: [AMQP 0-10] Messages are discarded when published into non existing queue destination
                 Key: QPID-7818
                 URL: https://issues.apache.org/jira/browse/QPID-7818
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker, Java Client
    Affects Versions: qpid-java-6.1.3, qpid-java-6.1.2, qpid-java-6.1.1, qpid-java-6.1, qpid-java-6.0.7, qpid-java-6.0.6, qpid-java-6.0.5, qpid-java-6.0.4, qpid-java-6.0.3, qpid-java-6.0.2, qpid-java-6.0.1, qpid-java-6.0, 0.32, 0.30, 0.28, 0.26, 0.24, 0.22, 0.20, 0.18
            Reporter: Alex Rudyy


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
{code}
       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
        }
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]