208209210211212213214215216217218
sendThread.start(); receiver.setMessageListener(listener); synchronized (listener) { queueConnection.start(); listener.wait(); } if (transacted == TRANS_TOTAL) { session.commit();
350351352353354355356357358359360
subscriber.setMessageListener(listener); startFlag.countDown(); synchronized (listener) { topicConnection.start(); listener.wait(); } if (transacted == TRANS_TOTAL) { session.commit();
207208209210211212213214215216217
347348349350351352353354355356357
subscriber.setMessageListener(listener); sendSynchMessage(); synchronized (listener) { topicConnection.start(); listener.wait(); } if (transacted == TRANS_TOTAL) { session.commit();