GeeCON Prague 2014*
The moose likes Sockets and Internet Protocols and the fly likes Naming.rebind Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Naming.rebind" Watch "Naming.rebind" New topic
Author

Naming.rebind

Mohamad Salman
Greenhorn

Joined: Jan 09, 2014
Posts: 1
Hi,
im doing a simple login on server and everything was going fine, i started the RMI registry and the server was working fine, i test the code and i was able to login.
now i want to start putting the codes in method and doing more methods, but when i put the Naming.rebind("server", i); in the server to call methods in the client from the server it shows error and i dont know what to do.
this is the code of the server:



help please
Supun Lakshan Dissanayake
Ranch Hand

Joined: Oct 26, 2012
Posts: 132

Welcome to Ranch!
On server side I'd use



Any problems?

feel free to ask.


Are you better than me? Then please show me my mistakes..
 
GeeCON Prague 2014
 
subject: Naming.rebind