Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

rmiregistry on one machine and server on another machine

 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic