• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can rmi server and client be in one java process

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic