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