212223242526272829
while (it.hasNext()) { Message msg = it.next(); System.out.println("message body:" + new String(msg.getData())); } browser.shutdown(); sessionFactory.shutdown(); } }
454647484950515253
n++; } assertEquals(100, n); } finally { topicBrowser.shutdown(); } } }