Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

whats the difference

 
mohd. gulrez khan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

I would like to know the difference between the tag

<resource-env-ref>
(HFEJB says that this can be used only as a JMS destination as of now)

and

<message-driven-destination>

Can someone please help ......
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Wise .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic