File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Annotation doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Annotation doubt" Watch "Annotation doubt" New topic

Annotation doubt

Aditya Vasudeva
Ranch Hand

Joined: May 27, 2008
Posts: 76
What does "using @Resource at the class level mean"?

That is, when this annotation is used as a @TARGET-field, it says that to look up a resource in a helper class, we have to use JNDI.

Also, what is a helper class? And, when @Resource is used for setter or getter methods, is the actual resource we want to inject obtained through the arguments/return-types?

This is described in EJB3 in Action on page 150.

Also, what does the @Target annotation do? What does:

@Target({TYPE,METHOD,FIELD}) mean??
jonas stock

Joined: Jun 26, 2008
Posts: 2
Read over:
I agree. Here's the link:
subject: Annotation doubt
jQuery in Action, 3rd edition