wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Annotation doubt" Watch "Annotation doubt" New topic
Author

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
Greenhorn

Joined: Jun 26, 2008
Posts: 2
Read over: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/annotation/Target.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Annotation doubt
 
Similar Threads
@Autowired, @Qualifier and @Resource annotation
Using jcip annotation
JNDI issue
The place where we define Annotations inside the EJB Bean class
EJB 3 in Action : @Resource Annotation doubt