wood burning stoves 2.0*
The moose likes Java in General and the fly likes Serializing java.util across different Java versions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Serializing java.util across different Java versions" Watch "Serializing java.util across different Java versions" New topic
Author

Serializing java.util across different Java versions

Jimmy Ho
Ranch Hand

Joined: Jul 31, 2007
Posts: 61
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serializing java.util across different Java versions