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

RMI binding clarification needed

 
Chiru babu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic