I am preparing for the certification OCEJWCD exam and use the book 'OCEJWCD Study Companion'. On page 302 of the book the elements of the @Resource annotation are explained. The book explains that when the name element is not declared the default is used. The default value is 'java:comp/env/[package-name].[class-name-resource]/[field-name]'. for example:
In the given example the default value for the name element of the @Resource annotation shall be 'java:comp/env/org.myapp.servlets.MyBean/bean'.
When i look in the Servlet specification 3.0 the elements of the @Resource annotation are not mentioned. But there is a reference to the JSR-250. When look in the JSR-250 specification the default value that is given to the 'name' element is "".
My question is, is the information in the book wrong or have I misunderstood something?