aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Specifying my MDB's destination to a message destination reference instead of a JNDI queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Specifying my MDB Watch "Specifying my MDB New topic
Author

Specifying my MDB's destination to a message destination reference instead of a JNDI queue

Kevin Halk
Greenhorn

Joined: Feb 09, 2010
Posts: 10
Hi there,
I'm wondering if when I specify the destination that my MDB listens on, can I specify a message destination reference instead of an actual JNDI location for a Queue?

I realize that 'destination' is a required attribute for the MDB, hoewever I can't figure out how to get it to point to a reference instead of a JNDI location. I have had some success using this for regular Queues etc.. by using the @Resource(name=... instead of @Resource(mappedName=.... however the only property I can specify is 'destination' for my MDB to listen on and it seems to be behaving according to 'mappedName'.

I'm using EJB3 with JBoss 5.1

Jack Stevens
Greenhorn

Joined: Jan 12, 2012
Posts: 2
Hi Kevin,

I realize this post is a year old so I was wondering if you were able to configure your destination value as such to allow for multiple queue values. Any insight is much appreciated.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Specifying my MDB's destination to a message destination reference instead of a JNDI queue