178179180181182183184185
@Test public void testPullX2() throws Exception { manager.getQueueManager().setLinkStrategy(new LinkHeaderLinkStrategy()); testPull(1); manager.getQueueManager().setLinkStrategy(new CustomHeaderLinkStrategy()); testPull(4); }
240241242243244245246247
@Test public void testReconnectX2() throws Exception { manager.getQueueManager().setLinkStrategy(new LinkHeaderLinkStrategy()); testReconnect(); manager.getQueueManager().setLinkStrategy(new CustomHeaderLinkStrategy()); testReconnect(); }
178179180181182183184185186187188
{ linkStrategy = new LinkHeaderLinkStrategy(); } else { linkStrategy = new CustomHeaderLinkStrategy(); } queueManager.setServerLocator(defaultLocator); queueManager.setSessionFactory(sessionFactory); queueManager.setTimeoutTask(timeoutTask);