Forum Stats

  • 3,758,935 Users
  • 2,251,478 Discussions
  • 7,870,439 Comments

Discussions

Configuring multiple Destinations(JMS)

976109
976109 Member Posts: 4
edited Dec 26, 2012 11:32PM in Java Message Service (JMS)
Hi,
I am working on JMS, my message Driven Bean(MDB) works fine with single <destination-jndi-name> , but I want to configure my MDB to listen to multiple destinations, when i gave another <destination-jndi-name> in weblogic-ejb.xml after that my MDB doesn't work.
Please show me the way how to configure weblogic-ejb.xml for multiple destinations i.e (Queues/topic) .

Thanks in Advance.

Regards.

Mansoor.
Tagged:

Answers

  • r035198x
    r035198x Member Posts: 2,499
    Try creating multiple instances of the MDB in the ejb-jar.xml using the same class and point those to the different queues. Typically an MDB instance can only listen to one queue but you can create multiple MDB instances using the same class.
This discussion has been closed.