What is the correct version of Java EE to use [message #539021] |
Wed, 09 June 2010 10:38 |
Eclipse User |
|
|
|
Originally posted by: reefedjib.yahoo.com
I just downloaded Galileo, Java EE 5, jdk 1.6, and other software (OC4J,
MySQL, Subversion, Subclipse). I had trouble locating an ejb.jar and so I
had a bad import javax.ejb.Local. This was before I had added OC4J as a
Runtime Environment. So, I decided to install Java EE 4 and jdk 1.5. This
worked and resolved my Local.
Now that I have OC4J, which brings its own ejb.jar file, should I switch
back to Java EE 5?
Thanks
--
|
|
|
|
Re: What is the correct version of Java EE to use [message #539310 is a reply to message #539106] |
Thu, 10 June 2010 11:07 |
Eclipse User |
|
|
|
Originally posted by: reefedjib.yahoo.com
Thanks for your responses. I am combining multiple responses.
"Konstantin Komissarchik" <konstantin.komissarchik@oracle.com> wrote in
message news:huodsr$9q8$1@build.eclipse.org...
> Different application servers support different versions of the Java EE
> spec. They are typically backwards compatible, but they are not going to
> be forward compatible. If the app server says its a J2EE 1.4 server, you
> will not be able to run apps written for Java EE 5 (or related
> technologies such as EJB 3.0) on it.
>
> The best thing to do is to not try to configure Java EE libraries
> yourself. Set your project to target the server runtime that you intend
> the application to run on. If the project already exists, you can do that
> under Project Properties -> Targeted Runtimes.
>
> - Konstantin
When I installed OC4J as a Target Runtime, this is what I have done. I
created the Project after installing the Runtime.
"Konstantin Komissarchik" <konstantin.komissarchik@oracle.com> wrote in
message news:huoe0n$c3m$1@build.eclipse.org...
> OC4J 10.1.3.4 is a J2EE 1.4 app server. It is not compatible with Java EE
> 5 technologies such as EJB 3.0. Your EAR file isn't being recognized by
> the server because it doesn't look like a valid J2EE 1.4 application.
>
> - Konstantin
This makes sense. I didn't realize OC4J was a J2EE 1.4 app server.
"Konstantin Komissarchik" <konstantin.komissarchik@oracle.com> wrote in
message news:huoebo$i4n$1@build.eclipse.org...
>> I have Galileo and Java EE 4. I installed OC4J as a Runtime Environment
>> and got its ejb.jar. My first question is that Java EE doesn't seem to
>> have any jars or libraries configured in Galileo. What is it good for?
>
> The best way to make sure that your application is compatible with the app
> server that you intend to deploy is to set your project to target that app
> server.
The problem I see is I was able to create a 3.0 EJB Project, so I could use
the Wizards to build Beans. It didn't restrict me to 2.1 because OC4J is a
J2EE 1.4 app server.
I have now created a EJB 2.1 project and am having to manually add my
classes.
Rob
|
|
|
Powered by
FUDForum. Page generated in 0.04158 seconds