aspose file tools*
The moose likes Distributed Java and the fly likes Can rmi server and client be in one java process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Can rmi server and client be in one java process" Watch "Can rmi server and client be in one java process" New topic
Author

Can rmi server and client be in one java process

roger wong
Ranch Hand

Joined: Oct 21, 2009
Posts: 31
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Oct 21, 2009
Posts: 31
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

Joined: Oct 21, 2009
Posts: 31
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can rmi server and client be in one java process