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 EJB 3.0 & 2.0 compatibility 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 "EJB 3.0 & 2.0 compatibility" Watch "EJB 3.0 & 2.0 compatibility" New topic

EJB 3.0 & 2.0 compatibility

skumar nand

Joined: Dec 18, 2008
Posts: 21
We are planning to develop a EJB3.0 application on WebLogic 10.3 server.
We suppose to use some jar files (e.g xyz.jar) which used EJB2.0 for their development.
In this case will my application(EJB 3.0) work with the xyz.jar(EJB2.0)?
Or we need to get the EJB3.0 version of xyz.jar to use with our application?

Thanks in Advance,
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10031

Your question seems not to be clear. Did you mean the jar files for the EJB API? If is the EJB API jar, then you need to have the latest specification which is EJB 3.0.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10031

As per the EJB 3.0 specification, the application servers implementing the EJB 3.0 spec should be backward compatible.
Reza Rahman
Ranch Hand

Joined: Feb 01, 2005
Posts: 580

FYI, there is a chapter in EJB 3 in Action dedicated to EJB 2.x and EJB 3.0 compatibility, interoperability and migration issues.

As Jothi stated, WebLogic 10 will fully support the co-existance of EJB 2 and EJB 3, so you can undertake the migration in a phased manner.


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
I agree. Here's the link:
subject: EJB 3.0 & 2.0 compatibility
jQuery in Action, 3rd edition