wood burning stoves 2.0*
The moose likes Websphere and the fly likes deploying source level=5 on WAS6.1 (j2ee 1.4) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "deploying source level=5 on WAS6.1 (j2ee 1.4)" Watch "deploying source level=5 on WAS6.1 (j2ee 1.4)" New topic
Author

deploying source level=5 on WAS6.1 (j2ee 1.4)

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2247
    
    7

Hello all,

I have a web application that is developed using Java 5 source (with annotations, generics etc). It runs on JEE 5 app servers like Tomcat and Glassfish perfectly fine. But now I want to deploy it on WAS 6.1 which defaults to J2EE 1.4.

Is it possible to NOT change any coding and will work on WAS6.1? Or can I have a JEE5 app with source 1.5 and target 1.4? Or as long as the WAS server computer has JDK 5, I can keep my source as 1.5?

I really don't want to change the source to 1.4 compatible (eg removing annotations and generics).

Any ideas what the best way to do this? Thanks


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Are you confusing Java versions with JEE versions? Websphere 6.1 runs under Java 5 so your Java source code can contain annotations and generics. But it doesn't implement JEE 5 so you can't use features of JEE 5 in your application.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2247
    
    7

Thanks Paul.

If WAS 6.1 runs under Java 5 then my source is safe

I asked this because I recall in Netbeans 6.5 creating a web app running with WAS6.1 makes the JEE version 1.4.

Well I will have to try it (deploying to WAS) soon.

Exactly what are the JEE5 features? Are these like the same as JSE5 "new" features like new for-each loop, autoboxing/unboxing, varargs etc which generics is one of them? Please clarify
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

K. Tsang wrote:If WAS 6.1 runs under Java 5 then my source is safe

I asked this because I recall in Netbeans 6.5 creating a web app running with WAS6.1 makes the JEE version 1.4.

So... you are confused between the Java language and the JEE environment then.
Exactly what are the JEE5 features? Are these like the same as JSE5 "new" features like new for-each loop, autoboxing/unboxing, varargs etc which generics is one of them?

I don't know but they aren't going to be features of the Java language. Let me google that for you... keywords "java ee 5 whats new"... okay here you go: Get to know Java EE 5.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2247
    
    7

Hmm then I think I'm safe then. Thanks again Paul.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deploying source level=5 on WAS6.1 (j2ee 1.4)
 
Similar Threads
Collections and Generics
Generics
Generics
Generics Help
Generics