• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm then I think I'm safe then. Thanks again Paul.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic