I'm working with Spring, JMS, ActiveMQ. I have a DefaultMessageListenerContainer with empty destination name. I also have a listener. As you know, a listener container can have many listeners for different destinations as shown below:
<jms:listener-container
container-type="default"
connection-factory="jmsConnectionFactory"
acknowledge="auto" >
<jms:listener destination="TEST.FOO" ref="myMessageListener" method="onMessage" />
<jms:listener destination="foo.bas" ref="myMessageListener" method="onMessage" />
<jms:listener destination="foo.bar" ref="myMessageListener" method="onMessage" />
</jms:listener-container>
In the above configuration, I am specifying the destinations in advance. But, I want to configure destinations dynamically. Could you please tell me how? Thanks!