• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI binding clarification needed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic