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.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serializing java.util across different Java versions

 
Jimmy Ho
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic