File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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


Mohamad Salman

Joined: Jan 09, 2014
Posts: 1
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: 135

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..
I agree. Here's the link:
subject: Naming.rebind
It's not a secret anymore!