This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Serializing java.util across different Java versions
posted 8 years ago
I've got some code that uses a java.util.ArrayList (which implements Serializable) to send objects back and forth between different systems on the network. We have application server and MQ upgrades coming up, and I'm concerned that serialization will break when we do the upgrade.
Basically, I'll have something like this: System 1: IBM JVM 1.4.2 System 2: IBM JVM 1.5.x
The code will be compiled by the build team using Java 1.4.2, probably.
One of the applications is a J2EE application that will run on JVM 1.5, and I'll set the EAR file setting to J2EE 1.3 (which corresponds to Java 1.4.2) in the DOCTYPE of application.xml. Not sure if that helps.
I know my code will be okay because it will be compiled by the same compiler for all systems, but since we hook into the java.util library residing on each JVM, how does that work?