Hello. Its the JMS lowbrow again - although I have provided some answer's to my previous questions. Hopefully this is a little more interesting.
How do I get one MDB to act as a receiver for multiple queues. I have a high priority queue and a low priority queue. I want to limit the number of instances of my MDB serving my low priority queue to, for example, 1. On the high priority queue I would like to set the number of MDB's to 15. Now, I have figured out how to control the number of MDB instances (see my other posts), but the way I have currently defined the receivers does not seem to be working (the MDB is bound to the last entry in the list of queues):
<message-driven>
<ejb-name>generator</ejb-name>
<destination-jndi-name>queue/eventSMS</destination-jndi-name>
</message-driven>
<message-driven>
<ejb-name>generator</ejb-name>
<destination-jndi-name>queue/eventMail</destination-jndi-name>
</message-driven>
I am aware that one could solve this by adjusting the priority of the messages. But I would like to be able to control the priorities independently of the messages, and from the server, not from the client applications.
Thanks in advance.
renen.