wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Difference between resource-ref and resource-env-ref ejb3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Difference between resource-ref and resource-env-ref ejb3" Watch "Difference between resource-ref and resource-env-ref ejb3" New topic
Author

Difference between resource-ref and resource-env-ref ejb3

Damodar Mukhopadhyay
Ranch Hand

Joined: Jan 15, 2007
Posts: 98
Hi,

Can any one please describe the difference between resource-ref and resource-env-ref?
How resource-env-ref is annotated?


Thanks...


SCJP 1.5, SCWCD 1.4, SCBCD 5.0, next SCDJWS...
James Joshy
Greenhorn

Joined: Jun 04, 2009
Posts: 6
Think of <resource-ref> as reference to external resource factory ... like DataSource
<resource-env-ref> is rather a reference to the resource itself like JMS destinatinations. No middleman here

The bottom line, it is confusing .. just memorize ..

SCJP, SCJD, SCBCD-5
Damodar Mukhopadhyay
Ranch Hand

Joined: Jan 15, 2007
Posts: 98
Thank you Jems...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between resource-ref and resource-env-ref ejb3