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 Difference between @inject and @Resource 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 "Difference between @inject and @Resource " Watch "Difference between @inject and @Resource " New topic

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

Joined: Jun 06, 2007
Posts: 2851

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

|Asking Good Questions|
Reza Rahman
Ranch Hand

Joined: Feb 01, 2005
Posts: 580

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


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
I agree. Here's the link:
subject: Difference between @inject and @Resource
It's not a secret anymore!