This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Contradicting statements 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 "Contradicting statements" Watch "Contradicting statements" New topic
Author

Contradicting statements

nitin pai
Ranch Hand

Joined: May 30, 2006
Posts: 185
From Mikalai's Study Guide chapter 2 - part 3

While referring to the @Resource annotation, it says:

The Bean Provider can specify that connections obtained from a resource manager connection factory reference are not shareable by specifying the value of the shareable annotation element to false or the res-sharing-scope deployment descriptor element to be Unshareable.


and later in the chapter it says:

A field or a method of a bean may be annotated with the Resource annotation to request injection of a resource environment reference. The authenticationType and shareable elements of the Resource annotation MUST NOT be specified; resource environment entries are NOT shareable and DO NOT require authentication.


Is this a mistake or some misunderstanding on my part?



 
Don't get me started about those stupid light bulbs.
 
subject: Contradicting statements
 
Similar Threads
Security
res-sharing-scope of resource-ref, how to share?
Sharing of Resource
res-sharing-scope in resouce-ref tag
Difference between @EJB and @Resource