Package org.apache.qpid.client

Examples of org.apache.qpid.client.AMQSession_0_10


              "}" +
        "}";

        AMQDestination dest = (AMQDestination)jmsSession.createQueue(addr);
        MessageConsumer cons = jmsSession.createConsumer(dest);
        AMQSession_0_10 ssn = (AMQSession_0_10)jmsSession;

        assertTrue("Queue not created as expected",ssn.isQueueExist(dest, true));
        assertTrue("Queue not bound as expected",ssn.isQueueBound("amq.direct","my-queue","test", null));

        cons.close(); // closing consumer, link binding should be removed now.
        assertTrue("Queue should still be there",ssn.isQueueExist(dest, true));
        assertFalse("Binding should not exist anymore",ssn.isQueueBound("amq.direct","my-queue","test", null));

        MessageProducer prod = jmsSession.createProducer(dest);
        assertTrue("Queue not bound as expected",ssn.isQueueBound("amq.direct","my-queue","test", null));
        prod.close();
        assertFalse("Binding should not exist anymore",ssn.isQueueBound("amq.direct","my-queue","test", null));
    }
View Full Code Here


              "}" +
        "}";

        AMQDestination dest = (AMQDestination)jmsSession.createQueue(addr);
        MessageConsumer cons = jmsSession.createConsumer(dest);
        AMQSession_0_10 ssn = (AMQSession_0_10)jmsSession;

        assertTrue("Queue not created as expected",ssn.isQueueExist(dest, true));
        assertTrue("Queue not bound as expected",ssn.isQueueBound("amq.direct","my-queue","test", null));

        cons.close(); // closing consumer, link binding should be removed now.
        assertTrue("Queue should still be there",ssn.isQueueExist(dest, true));
        assertFalse("Binding should not exist anymore",ssn.isQueueBound("amq.direct","my-queue","test", null));

        MessageProducer prod = jmsSession.createProducer(dest);
        assertTrue("Queue not bound as expected",ssn.isQueueBound("amq.direct","my-queue","test", null));
        prod.close();
        assertFalse("Binding should not exist anymore",ssn.isQueueBound("amq.direct","my-queue","test", null));
    }
View Full Code Here

              "}" +
        "}";

        AMQDestination dest = (AMQDestination)jmsSession.createQueue(addr);
        MessageConsumer cons = jmsSession.createConsumer(dest);
        AMQSession_0_10 ssn = (AMQSession_0_10)jmsSession;

        assertTrue("Queue not created as expected",ssn.isQueueExist(dest, true));
        assertTrue("Queue not bound as expected",ssn.isQueueBound("amq.direct","my-queue","test", null));

        cons.close(); // closing consumer, link binding should be removed now.
        assertTrue("Queue should still be there",ssn.isQueueExist(dest, true));
        assertFalse("Binding should not exist anymore",ssn.isQueueBound("amq.direct","my-queue","test", null));

        MessageProducer prod = jmsSession.createProducer(dest);
        assertTrue("Queue not bound as expected",ssn.isQueueBound("amq.direct","my-queue","test", null));
        prod.close();
        assertFalse("Binding should not exist anymore",ssn.isQueueBound("amq.direct","my-queue","test", null));
    }
View Full Code Here

              "}" +
        "}";

        AMQDestination dest = (AMQDestination)jmsSession.createQueue(addr);
        MessageConsumer cons = jmsSession.createConsumer(dest);
        AMQSession_0_10 ssn = (AMQSession_0_10)jmsSession;

        assertTrue("Queue not created as expected",ssn.isQueueExist(dest, true));
        assertTrue("Queue not bound as expected",ssn.isQueueBound("amq.direct","my-queue","test", null));

        cons.close(); // closing consumer, link binding should be removed now.
        assertTrue("Queue should still be there",ssn.isQueueExist(dest, true));
        assertFalse("Binding should not exist anymore",ssn.isQueueBound("amq.direct","my-queue","test", null));

        MessageProducer prod = jmsSession.createProducer(dest);
        assertTrue("Queue not bound as expected",ssn.isQueueBound("amq.direct","my-queue","test", null));
        prod.close();
        assertFalse("Binding should not exist anymore",ssn.isQueueBound("amq.direct","my-queue","test", null));
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.client.AMQSession_0_10

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.