• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple RMI & JNDI  RSS feed

 
Gavin Wilkinson
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i have an RMI server that works like a treat.
In the main method of the server im registring my object with the server. I then use a JNDI lookup to retrieve an object and can then run the remote methods on it.
However if i write a seperate client app i can access the JNDI and get the object, but as soon as i try to use it i get a socket error, code (10061).
Im using a grant all security policy file on the client and server.
has anybody got any ideas or suggestions ?
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think u need to bind the jndi object to some port first
then
make a jndi lookup on client site
this socket problem only occurs when there is no service responding for which u r asking from client...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!