aspose file tools
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 Elasticsearch in Action this week in the Big Data 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

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: 2753

"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
It is sorta covered in the JavaRanch Style Guide.
subject: Difference between @inject and @Resource