Hi Has anyone used 2 different versions of java in same J2EE project. I have a web project where i have a Applet which displays data in graphs etc, this applet uses applet - servlet communication to connect to database, What i want to try to do is develop all the servlets and code running on application server using J2SDK1.4.2 and the applet using J2sdk1.5 (5.0). I cannot use java 1.5 for server side as i am using app server which does not support it, but i want to use java 1.5 to get latest abilities in Swing. I see a potential problem with class compiled in different versions, I populate data in java class and send this class to applet which reads data from these classes and do the plotting Any suggestions Ashish
Not sure where you're imagining the problem might be. The two JVMs will be running on completely different machines (one on server, the other on a desktop), and they'll be executing more or less completely separate codebases. The only potential problems I can think of is that if your applet and servlet share any utility classes, those classes can't use JDK 1.5 features; and if the applet and servlet communicate via exchanging serialized objects, the Serializable classes shouldn't use 1.5 features as well.
Otherwise, they're utterly separate, so there should be no problems.