This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMI problem. please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI problem. please help" Watch "RMI problem. please help" New topic

RMI problem. please help

Ryan Acc

Joined: Jan 31, 2005
Posts: 5
I'm connecting to an RMI server in the following way:

//Client code
// Get remote service
RemoteService server = (RemoteService) Naming.lookup("rmi" + "://" + this.remoteHost + ":" + this.remotePort + "/" + this.remoteServiceName);

// Call remote service
server.doSomething(args1, args2);

However, the RMI server sometimes stops responding to client connections/calls after the server has serviced a lot of clients almost simultaneously.

Do I have to do an unbind clients to free up some space for new clients? How would I do this?

cheers in advance
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Is there any output to tell what the server's doing when it's not responding? Is it still busy servicing clients? Or has it crashed or locked up for some reason?

And how many clients is "a lot"?

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: RMI problem. please help
Similar Threads
The RMI Data Access Conundrum
Shoud I persist the RMI registry and server ports?
Problem with RMI factory stubs
RemoteInterface realization
RMI SocketPermission exception from Applet - works from Netbeans