File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Joined: May 27, 2008
Jun 10, 2008 18:49:00
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:
Joined: Jun 26, 2008
Jun 26, 2008 05:49:00
I agree. Here's the link:
subject: Annotation doubt
The place where we define Annotations inside the EJB Bean class
Using jcip annotation
EJB 3 in Action : @Resource Annotation doubt
@Autowired, @Qualifier and @Resource annotation
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015