This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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).
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.