Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI: rmiregistry and server on different hosts  RSS feed

 
Alex Belisle Turcot
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I looked on the web and on this site for this information and I'm still wishing its possible to do what I want...

Is it possible to run the rmiregistry and the server on different hosts? And bind the server to the remote rmiregistry?

Does that makes sense at all? Maybe it doesn't make sense because then rmiregistry wouldn't be any closer to the server than the client and then what would be the use of the rmiregistry...

I was told that the server always had to be on the same host as the rmiregistry. I just don't like limitation like that, so I'd like to know for sure.

Thanks,
Alex
 
Edward Harned
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NO NO
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was an earlier discussion on this same issue. I'll agree with Edward's statement that this isn't possible with the default implementation of rmiregistry (and hasn't - I was wrong about the default rmiregistry providing this at some point in the past). However, I still don't see anything inherent in RMI to prevent this - you'd just have to provide an alternate rmiregistery that allowed remote bindings.

If you're interested in a technology that supports remote bindings without having to re-implement rmiregistry - take a look at Jini.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!