How to keep message listener up and running to asynchronously keep receiving messages
I am using JCSMP API. For listening to messages. I am using asynchronous receiving by implementing XMLMessageListener. Once I started FlowReceiver, it starts listening to messages, my program terminates after some time. I want my listener to be up and running until I terminate my program. Is it possible keep the listener up and running without a web container like tomcat. Please suggest on this.