Hide Forgot
project_key: SOA The answer is to add "while (true) { }" at line 120: // make the connection active topicHelper.conn.start() ; while (true) { } // TextListener will now pull messages ad infinitum // shutdown hook will be called at Ctrl-C Without this change - the "ant receive-from-queue" target runs once and exits.
Link: Added: This issue related JBESB-1580
SOA-456 Committing fix for: http://jira.jboss.com/jira/browse/SOA-456 To branch: https://svn.labs.jboss.com/labs/jbossesb/workspace/platform/JBESB_4_2_1_SOA_4_2/ And cleaned up deprecated code - ex. esbMessage.getBody().setByteArray(args[2].getBytes()); [ldimaggi@ldimaggi notifications]$ svn commit Sending notifications/src/org/jboss/soa/esb/samples/quickstart/notifications/MyJMSListenerAction.java Sending notifications/src/org/jboss/soa/esb/samples/quickstart/notifications/test/ReceiveJMSMessageFromTopic.java Sending notifications/src/org/jboss/soa/esb/samples/quickstart/notifications/test/SendEsbMessage.java Transmitting file data ... Committed revision 18739.
The actual change committed was: while (true) { // loop until I'm killed try { Thread.sleep(500); } catch (InterruptedException e) {break;} }
Verified fixed in CP01