File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI problem. please help" Watch "RMI problem. please help" New topic
Author

RMI problem. please help

Ryan Acc
Greenhorn

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
Bartender

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"?


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI problem. please help