aspose file tools*
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
 
Similar Threads
WAS5.02 and OracleAQ as Generic JMS Provider
How to configure JMS in 9iAS ?
MDB and JMS
MDB + Entity Bean / MDB + SB + EB
ICE 287 answers for WebSphere 5.0