File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Associating MDB and destination Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Associating MDB and destination" Watch "Associating MDB and destination" New topic

Associating MDB and destination

Trader Joey
Ranch Hand

Joined: May 11, 2000
Posts: 33
How do I associate a message driven bean and the destination (queue / topic) so that messages arriving on the destination are processed by that MDB.

Your help is highly appreciated.


[ September 24, 2007: Message edited by: Trader Joey ]
bhupesh ravish

Joined: Sep 12, 2006
Posts: 11
hey you are supposed to give the the type of destination in your ejb-jar.xml file and actual name in the application server specific file. i:e: jboss.xml or any which you are using
Shailesh Kini
Ranch Hand

Joined: Oct 17, 2001
Posts: 153
Hi Trader,

You may also use Annotations if you are using JEE5. If not, please follow Bhupesh's recommendation.

Shailesh Kini.
I agree. Here's the link:
subject: Associating MDB and destination
It's not a secret anymore!