aspose file tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI binding clarification needed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "RMI binding clarification needed" Watch "RMI binding clarification needed" New topic
Author

RMI binding clarification needed

Chiru babu
Greenhorn

Joined: Jan 02, 2003
Posts: 14
Hi,
somebody help me by clarifing me on RMI binding.
on Machine "A" i bind my dataServer with following URL
rmi://localhost:1099/dataServer
And when client program tries to access the server with URL
rmi://<ip of machine A>:1099/dataServer
I'm getting a NotBoundException.

And when i bind my server with its ip address
(ie) with the url
rmi://<ip of machine A>:1099/dataServer
My client is able to access server with URL
rmi://<ip of machine A>:1099/dataServer.
basically if the binding URL are exactly matching then client program
is able to get a reference of the Server.
I'm using LocateRegistry to start RMI registry.
I wanna to know if the result i see is valid or my program is missing
something.
plse help me!!
just minutes before my submission i got struckup with this question!!
Thanks,
[ January 03, 2003: Message edited by: Chiru babu ]
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937

on Machine "A" i bind my dataServer with following URL
rmi://localhost:1099/dataServer

Bind your object to a simple name instead, and your problems will go away. For example:
registry.rebind("yourServiceName", yourObject);
Eugene.
Chiru babu
Greenhorn

Joined: Jan 02, 2003
Posts: 14
Originally posted by Eugene Kononov:

Bind your object to a simple name instead, and your problems will go away. For example:
registry.rebind("yourServiceName", yourObject);
Eugene.

Eugene,
that's good solution,
with the extra paramaters i could only make my life miserable.
Thanks,
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: RMI binding clarification needed
 
Similar Threads
Do we need host,port,and db name when we use RMI ?
RMI client "access denied" problem
Exception: Connection refused to host
RMI Binding on localhost
RMI app behind NAT firewall