Here is what I mean to ask:
- Component A is publishing objects to Component B using MQ Server
- Component A is compiled and runs on Java 6
- Component B is compiled and runs on Java 4
What will happen ?
I dont have enough infrastructure to test this out.
Here is what I mean to ask:
What will happen ?
I dont have enough infrastructure to test this out.
You will probably get an unsupported major / minor exception. Have a look at this post that talks about it:
How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
Basically, you should compile all of your source to run on a particular version of Java.
In your case Component A must write something which Component B can understand. Nothing else matters.
You can't actually pass objects over a messaging system. All you can do is to serialize the data into bytes at one end and deserialize the data at the other. This means that classes at one end can be completely different to those at the other (not just different versions, but even different languages). The problem is the wire protocol needs to be compatible.