• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI client and server running in different jvms

 
Alex Sharkoff
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi my fellow ranchers,

What potential problems can you see in running RMI Client in jre1.4.2 that talks to RMI Server running in jre5.0.5:

------------- -------------
rmi client | <---- | rmi server |
jre1.4.2 | ----> | jre 5.0.5 |
------------- -------------

This query is not directly linked to Java Developer Exam but since we're all becoming RMI experts I thought it would be a good place for it.


Kind regards.
[ January 05, 2006: Message edited by: Alex Sharkoff ]
 
Martin Sturzenhecker
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Alex Sharkoff:
Hi my fellow ranchers,

What potential problems can you see in running RMI Client in jre1.4.2 that talks to RMI Server running in jre5.0.5:

------------- -------------
rmi client | <---- | rmi server |
jre1.4.2 | ----> | jre 5.0.5 |
------------- -------------



1. class file compatibility is not a problem AFAIK. If you compile all code gainst java 1.4.2 there shoud be no problem.

2. You can't send objects from server to client, that contain java 1.5 specific features (enums, annotations, java.util.concurrent..., etc.).

I'd try to use the same vm on server and client or at least set the compile settings in the ide)accordingly so I don't get seduced to use new features.

hope this helps a little
-martin
 
Alex Sharkoff
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot , Martin . It does help.


Kind regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic