wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Difference between @inject and @Resource 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 » Java » EJB and other Java EE Technologies
Bookmark "Difference between @inject and @Resource " Watch "Difference between @inject and @Resource " New topic
Author

Difference between @inject and @Resource

Gautam Ry
Ranch Hand

Joined: Dec 30, 2008
Posts: 41
Can any one explain, difference between @inject and @Resource in EJB3.0?
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

"Gautam Ry " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.


SCJP, SCWCD.
|Asking Good Questions|
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Gautam,

There is no @Inject in EJB 3.0, but there is such an annotation for Seam.

Regards,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
 
Consider Paul's rocket mass heater.
 
subject: Difference between @inject and @Resource
 
Similar Threads
InitialContext vs ServletContext
SCJD 5.0 Vs 6.0 certifications
Difference between resource-ref & resource-env-ref
Difference between <resourse-env-ref> and <message-destination-ref>
Difference between @EJB and @Resource