Originally posted by Martin Ivancic:
Thanks for your response Martijn.
Yes, our app server is limited to JDK 1.4 (Oracle AS 10.1.3.) and RMI is written in JDK 1.5 (minor version 49.0). We could probably install another JDK enviroment on app sever if that would help.
I have control over the code of the client part. I'm suppose to write the client part . The technical documentation provided by developers of the RMI is very poorly written.
Because some methods use objects such as ArrayList<T> as parmeters or return values I doubt that JDK 1.4 can be used for the client part. Or am I wrong?
Regards, Martin.
Martin, the problem will not be Generics. Generics does not modify the class file itself. Furthermore, your problem will only be with serialization, not remote invocation. If you are only manipulating exported objects there is no concern. If your objects pass parameters which are not exported objects, then those will be serialized.
For serialized objects, the server will basically send the whole object and description across RMI, so that should be OK as well. The problem will be when the server uses a class that is not included in its library of classes it can send across the RMI. The client will choke if it can't fine the file and it cant download it across RMI. It will match the classes with their SerialVersionUID or whatever.