Examples of deliver()


Examples of org.jboss.messaging.core.plugin.postoffice.cluster.LocalClusteredQueue.deliver()

         //Force a failure before commit
         office2.setFail(true, false, false);

         log.trace("delivering");
         queue2.deliver();

         Thread.sleep(3000);

         assertEquals(1, office1.getHoldingTransactions().size());
         assertTrue(office2.getHoldingTransactions().isEmpty());
View Full Code Here

Examples of org.jboss.messaging.core.plugin.postoffice.cluster.LocalClusteredQueue.deliver()

         //Force a failure after commit the ack to storage
         office2.setFail(false, true, false);

         log.trace("delivering");
         queue2.deliver();

         Thread.sleep(3000);

         assertEquals(1, office1.getHoldingTransactions().size());
         assertTrue(office2.getHoldingTransactions().isEmpty());
View Full Code Here

Examples of org.jboss.messaging.core.plugin.postoffice.cluster.LocalClusteredQueue.deliver()

         receiver2.setMaxRefs(1);

         office2.setFail(false, false, true);

         log.trace("delivering");
         queue2.deliver();

         Thread.sleep(3000);

         //The delivery should be rolled back
View Full Code Here

Examples of org.jboss.messaging.core.plugin.postoffice.cluster.LocalClusteredQueue.deliver()

         assertEquals(20, queue4.getDeliveringCount());
         acknowledgeAll(receiver4);
         receiver4.setMaxRefs(0);

         receiver5.setMaxRefs(25);
         queue5.deliver();
         readOK = receiver5.waitForHandleInvocations(25, 20000);
         assertTrue(readOK);
         Thread.sleep(1000);
         assertEquals(NUM_MESSAGES - 25, queue5.memoryRefCount());
         assertEquals(25, queue5.getDeliveringCount());
View Full Code Here

Examples of org.jboss.messaging.core.plugin.postoffice.cluster.LocalClusteredQueue.deliver()

         log.trace("queue4, refs:" + queue4.memoryRefCount() + " dels:" + queue4.getDeliveringCount());
         log.trace("queue5, refs:" + queue5.memoryRefCount() + " dels:" + queue5.getDeliveringCount());

         // Consume the rest from queue 5
         receiver5.setMaxRefs(NUM_MESSAGES - 25);
         queue5.deliver();
         readOK = receiver5.waitForHandleInvocations(NUM_MESSAGES - 25, 20000);
         assertTrue(readOK);

         Thread.sleep(2000);
View Full Code Here

Examples of org.jboss.messaging.core.plugin.postoffice.cluster.LocalClusteredQueue.deliver()

         // Now consume 5 more from queue5, they should come from queue1 which has the most messages

         log.trace("Consume 5 more from queue 5");

         receiver5.setMaxRefs(5);
         queue5.deliver();
         readOK = receiver5.waitForHandleInvocations(5, 20000);
         assertTrue(readOK);

         Thread.sleep(4000);
View Full Code Here

Examples of org.jboss.messaging.core.plugin.postoffice.cluster.LocalClusteredQueue.deliver()

         assertTrue(office5.getHoldingTransactions().isEmpty());

         // Consume 1 more - should pull one from queue2

         receiver5.setMaxRefs(1);
         queue5.deliver();
         readOK = receiver5.waitForHandleInvocations(1, 20000);
         assertTrue(readOK);

         Thread.sleep(2000);
View Full Code Here

Examples of org.jboss.soa.esb.couriers.Courier.deliver()

    Message message = MessageFactory.getInstance().getMessage();
    message.getHeader().setCall(call);
    message.getBody().add("Hello World".getBytes());
    Courier courier = CourierFactory.getCourier(call.getTo());

    courier.deliver(message);
  }
}
View Full Code Here

Examples of org.jboss.soa.esb.couriers.Courier.deliver()

                final ServiceInvoker invoker = ((LogicalEPR)epr).getServiceInvoker();
                invoker.deliverAsync(message);
            } else {
                final Courier courier = CourierFactory.getCourier(epr);
                try {
                    courier.deliver(message);
                } finally {
                    CourierUtil.cleanCourier(courier);
                }
            }
        } else {
View Full Code Here

Examples of org.jboss.soa.esb.couriers.Courier.deliver()

                final ServiceInvoker invoker = ((LogicalEPR)epr).getServiceInvoker();
                invoker.deliverAsync(message);
            } else {
                final Courier courier = CourierFactory.getCourier(epr);
                try {
                    courier.deliver(message);
                } finally {
                    CourierUtil.cleanCourier(courier);
                }
            }
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.