448449450451452453454455456457458
office3.stop(); // Start them all office1.start(); office2.start(); office3.start(); // Only the durable queue should survive queues = office1.getQueuesForCondition(condition1, false); assertNotNull(queues);
702703704705706707708709710711712
//Start all nodes office1.start(); office2.start(); office3.start(); Thread.sleep(3000); //Verify the binding is there
12381239124012411242124312441245124612471248
office2.stop(); office3.stop(); office1.start(); office2.start(); office3.start(); Thread.sleep(3000); bindings = office1.getAllBindings(); assertTrue(bindings.isEmpty());
12721273127412751276127712781279128012811282
Thread.sleep(3000); bindings = office1.getAllBindings(); assertEquals(2, bindings.size()); office3.start(); Thread.sleep(3000); bindings = office1.getAllBindings(); assertGotAll(1, bindings, queue1.getName());
449450451452453454455456457458459
703704705706707708709710711712713
12391240124112421243124412451246124712481249
12731274127512761277127812791280128112821283