Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rmiregistry on one machine and server on another machine

 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I have been looking (briefly) at how to run the rmiregistry on one machine while my server is on a seperate machine.
From the API documentation for Naming, it says that the bind method takes a URL for the host the rmiregistry is on.
However if I try to implement that, I get the following error:

The documentation for AccessException says that this exception occurs whenever you try and do a bind to a non local host - no suggestion of workarounds.
Several posts on the internet seem to indicate that this is a deliberate security policy by Sun, and that there is no workaround. Server code must run on the same machine as the rmiregistry.
Is this right? Or have I missed something?
Regards, Andrew
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it work on just one machine? Then just stick with that.
Having the registry and the server running on two different machines are not in the requirements, so why go through the bother.
Have fun
Mark
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
Good point - I should have been sticking to the YAGNI principle. :roll:
It still would be nice to know an answer about whether this is possible or not though.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic