• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS listener - how to dynamically choose destinations?

 
Faisal Ahmad
Ranch Hand
Posts: 355
Chrome Java Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Andrew Moko
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The MDB has to know its destination classes/ queue on start up. I don't think there's any way round it
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!