| 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
|
|
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,
|
 |
 |
|
|
subject: RMI binding clarification needed
|
|
|