• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
K. Tsang
Bartender
Posts: 3521
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3521
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3521
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm then I think I'm safe then. Thanks again Paul.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic