• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can rmi server and client be in one java process

 
roger wong
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can rmi server and client be in one java process?

If can, does the rmi internal implementation remove the marshalling or unmarshalling so that the performance is improved?

Thank you.
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
roger wong wrote:Can rmi server and client be in one java process?

Sure. That would be an unusual thing to do, and rather pointless too, but there's no reason it couldn't be done.
If can, does the rmi internal implementation remove the marshalling or unmarshalling so that the performance is improved?

I can't say for sure, but if I were designing RMI, I wouldn't bother with that "performance improvement" because nobody in real life would ever use RMI in that way. So I doubt it.
 
roger wong
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank u.

I am working on a comercial platform of which the installation guide says that it can be deployed in such a mode as rmi server and client are in one process and the performance is good for there is no marshalling and unmarshalling.

I doubt it so much for I didn't find any such thing in the rmi specification.

So I propose the questions.
 
roger wong
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And there is another thing strange about the same comercial platform. In the installation guide it says it uses the rmi-iiop while it requires rmid. I don't find anything in rmi-iiop related to activation using rmid in authority specification.

So I propose another three questions. Could you please help answer them?
1. can rmi-iiop use activation?
2. how is rmi-iiop server impl exported as rmi-jrmp?
3. can rmi-iiop use rmid or rmiregistry?

Really Thanks!
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
roger wong wrote:Thank u.

I am working on a comercial platform of which the installation guide says that it can be deployed in such a mode as rmi server and client are in one process and the performance is good for there is no marshalling and unmarshalling.

I doubt it so much for I didn't find any such thing in the rmi specification.

So I propose the questions.


But why didn't you propose them to the people who wrote that platform? For all we know they have specific code in their product which does "If server and client are in same JVM then... else...". There's no need to assume this functionality is built into RMI.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic