133134135136137138139140
Thread.sleep(1000); } System.out.println("MessagePuller test completed"); subscription.destroy(); } }
129130131132133134135136137138139
System.out.println(b1); System.out.println(b2); subscription.destroy(); subscription2.destroy(); } @Test public void testRoundTripWithDifferentTopics() throws Exception {
165166167168169170171172173
Boolean b2 = c2.getQueue().take(); System.out.println(b1); System.out.println(b2); subscription2.destroy(); subscription.destroy(); } }
5152535455565758596061
// do what you want to do instead of rethrowing. e.g. like retrying throw new RuntimeException(e); } System.out.println(subscription.getBrokerPublishEPR()); subscription.destroy(); System.out.println("Subscription cleared"); System.exit(0); } }