I have many destinations (queues) on ActiveMQ deployed on a separate server. I want to dynamically listen to these destinations from my program. Currently I'm listening to these destinations as shown below:
I'm able to successfully receive messages from these destinations. However, as you can see I've to add destinations manually in the above configuration. I want to skip this and prefer the listener to dynamically choose the destinations. Is this possible? How? Many thanks in advance for any sort of help/guidance!
posted 4 years ago
The MDB has to know its destination classes/ queue on start up. I don't think there's any way round it