• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

how to configure multiple MDB in DD

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!