I'm working in a 'hot migration' framework to support two versions of the same application running at the same time to pass little by little new users to the new version (it should takes several minutes tops).
The Context
As consecuence, the cluster might handle two different structures for the same class during this process. Here the classic example:
The problem
We create an AdvancedExternalizer that handles this very well but we have a problem if the added field is from a Class that it is not in the classpath of the 'old nodes'. We will get systematically a ClassNotFoundException everytime that we try to readObject() the value of this yet unknown class.
This problem might be solve if the ExtendedRiverUnmarshaller allows to read an object as a byte[] to allow getting its value without creating an instance of the object. With this valiable we can:
What do you think about this? Do you have any suggestion to do this differently?
Thanks in advance,
Some important notes