Pat Farrell wrote:
Jayesh A Lalwani wrote:Whoa! Pat. When did you last read about RMI?
Long ago, last century. Its been obsolete at least that long.
Pat Farrell wrote:Oh, its easy to make messages handle different versions.
The problem with RMI is that the objects must be identical. They are compiled with the 'rmic' into stubs.
With a message, all you have to do is pass a version number, say as the first field, and then write your code to read the version number and dispatch to the right code. The cool thing about this is that once you have the version number 1 code, you can ignore changes until you really need version 2. And you can be sure that you will have a version 2.