• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX:Question about RMI registry

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I write code this way:
LocateRegistry.createRegistry(1099).rebind("rmi://LocalHost/Service",Service);
and when I start the client, I got a NotBoundException, why???
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I write code this way:
LocateRegistry.createRegistry(1099).rebind("rmi://LocalHost/Service",Service);
and when I start the client, I got a NotBoundException, why???

You should bind the name of the service to RMI registry, but NOT the connection string.
Please try:

Nick
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i had the same problem and just wanted to let future reades know that the solution works perfectly ;-)

thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic