This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Associating MDB and destination" Watch "Associating MDB and destination" New topic
Author

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.

Thanks

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

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.
 
 
subject: Associating MDB and destination