wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes whats the difference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "whats the difference" Watch "whats the difference" New topic

whats the difference

mohd. gulrez khan

Joined: Nov 23, 2004
Posts: 20
Hi ranchers,

I would like to know the difference between the tag

(HFEJB says that this can be used only as a JMS destination as of now)



Can someone please help ......

Gulrez<br /> <br />SCJP 1.4 , SCWCD 1.4.<br />SCBCD 1.3
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
They have different usages.
Message-Driven Beans and JMS:

Clients do not bind to an MDB like they do for session beans and entity beans. The client only needs to send a JMS message to the queue/topic to which the MDB is configured to listen. Typically clients also use the <resource-ref> and <resource-env-ref> elements of their deployment descriptor and then point to the same JNDI names as the MDB's <connection-factory-name> and <message-driven-destination-name> descriptor elements.


In ejb-jar.xml, attaching a JMS resource to an MDB requires the <message-driven-destination> entry in the MDB's declaration.
mohd. gulrez khan

Joined: Nov 23, 2004
Posts: 20
Thanks Wise .
Consider Paul's rocket mass heater.
subject: whats the difference
Similar Threads
Destination Queue not found
MDB Question
open a heper link in a new window using trinidad tags
MDB + DD question.
Difference between <resourse-env-ref> and <message-destination-ref>