This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bind object to a registry on another machine

 
Hema Menon
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am just making baby steps thru RMI. I was wondering if it is possible to bind my remote object to a registry located on another machine. When I tried running rmiregistry on on machine and from another machine I tried to bind to it, I got AccessException. Am I missing something, or is it not possible altogether. Any inputs would be appreciated.
Thanks in advance,
Hema
 
Hema Menon
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, I got my answer. Here it is for future reference. I found the following from the Getting started using RMI

For security reasons, an application can bind or unbind only to a registry running on the same host. This prevents a client from removing or overwriting any of the entries in a server's remote registry. A lookup, however, can be done from any host.
Well, the answer is no, its not possible.
Thanks,
Hema
 
Sumit Chachra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Its very much possible ... albeit indirectly !

Take a look at :

http://www.coderanch.com/t/209018/java/java/RMI-Registry-location

AND

http://www.coderanch.com/t/209418/java/java/RMI-registry-remote-object-different

regards,
Sumit.
 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!