This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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 .
I agree. Here's the link:
subject: whats the difference
It's not a secret anymore!