Given that we programatically create Queues via HornetQ JMX: I have problems registering a MessageListener that lasts the application lifetime. The reason is that we open a Connection with ConnectionFactory, then a Session which the Consumer is created from. When code is done executing, I "must" close the connection and hence, the MessageListen "dies". Any suggestions? Do I need to listen for messages in my Threads or can JBoss/HornetQ help me with some code?
|Retrieving data ...|