File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Java 6 support for EJB 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java 6 support for EJB 2.0" Watch "Java 6 support for EJB 2.0" New topic
Author

Java 6 support for EJB 2.0

Sam Semwal
Greenhorn

Joined: May 15, 2007
Posts: 19
Hi,

We wish to upgrade our java 1.4.2 version which has EJB 2.0 to java 6 with EJB 2.0.

Does SDK 6 support EJB 2.0?

Many thanks for help.


TOGAF, SCJP 5.0, MBCS
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

No. You are confusing the Java Platform, Standard Edition, which is what your version numbers are (1.4.2, 6) with the Java Platform, Enterprise Edition (which supports EJB's).
The version of JDK you can run will be dictated by what EJB container you are using (JBoss, Weblogic, Websphere).


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41508
    
  53
Neither Java 1.4 nor Java 6 "have" EJB of any version. Those are JSE versions, while EJB is part of JEE.

A Java 6 JVM can certainly run EJB 2 code, as long as the JEE server being used supports it. In general, JVMs are backwards compatible - whatever Java 1.4 can run, so can Java 5, and -by extension- Java 6.


Ping & DNS - my free Android networking tools app
Sam Semwal
Greenhorn

Joined: May 15, 2007
Posts: 19
Thanks a lot for your response.
What I mean was JDK 1.4.2 migration to JDK 6 and at the same time Weblogic 8.1 to Weblogic 10.
As we are using EJB 2.0 I was just wondering whether the servers which use JRE 6 can support EJB 2.0 or we have to migrate to EJB 3.0.

From the second answer it is clear that we do not have to migrate to EJB 3.0 which is very good news for us.

Many thanks for your responses.

Cheers
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41508
    
  53
From the second answer it is clear that we do not have to migrate to EJB 3.0

Actually, it's not. Note that I said "as long as the JEE server being used supports it." So you need to make sure that WebLogic 10 supports EJB 2 (it probably does, but you need to make sure).
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

Weblogic 10 supports EJB 2.
I have a large EJB 2 application that I'm looking to move from WLS 8.1 to 10 and it deploys fine on 10. Unfortunately, BEA broke their own authentication API, so I'm waiting for a patch for that.
Sam Semwal
Greenhorn

Joined: May 15, 2007
Posts: 19
Don't worry, you don't have to provide disclaimer

Here is the solution:

http://edocs.bea.com/wls/docs100/compatibility/compatibility.html
http://edocs.bea.com/wls/docs100/ejb/overview.html#wp1116252
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java 6 support for EJB 2.0