This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes how to configure multiple MDB in DD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "how to configure multiple MDB in DD" Watch "how to configure multiple MDB in DD" New topic
Author

how to configure multiple MDB in DD

jack li
Greenhorn

Joined: Jul 04, 2005
Posts: 8
Hi Ranchers

It is my first time touching JMS
A doubt is, if I have two types of MDB to listen to different JMS queue respectively, how could I configure in the DD?
Seems in the DD, there is only tag message-driven-destination describing the message type(QUEUE/TOPIC), there is no queue name.

Thanks
Jack
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Originally posted by jack li:
Hi Ranchers

It is my first time touching JMS
A doubt is, if I have two types of MDB to listen to different JMS queue respectively, how could I configure in the DD?
Seems in the DD, there is only tag message-driven-destination describing the message type(QUEUE/TOPIC), there is no queue name.

Thanks
Jack


Hi,

<message-destination> configure the Queue/Topic name in your application. Queue/Topic are configured by container using admin tools. You can define one or more Queue/Topic in container.

To use these Queue/Topic name in MDB you have to configure the <message-destination-ref> element in your DD. This define the JNDI resource to use in application lookups.

<message-destination-name> element in <message-destination> in the deployment descriptor and is the value that could be used by a message destination reference or message-driven bean as its <message-destination-link> element.

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to configure multiple MDB in DD