Hello! We have a problem with RMI Connection. We have a RMI server that is using the factory pattern and client applets connecting to it. When the application starts, a remote object, that is the RMI home object ,is registered in the RMI registry. On every client that connects to the server the home object creates another remote object that serves the client. The clients connect to the remote home object by invoking the method 'Naming.lookup(name)' and then invokes a remote method on that object. After several successful connections to the server the problem starts: the method 'Naming.lookup(name)' returns a reference to the remote home object but invoking a method on that remote reference throws a 'ConnectionException' with the message "Connection refused to host..". from now on it is impossible to invoke remote methods on the remote objects. We tried to connect to use telnet to connect to the port that the RMI object is listening on but with no success. Also we saw that the server have a listener on this port but it seems that the port disconnected After 15 minutes the listener is available and new clients can connect and invoke methods again. This happen with random client and we can't recreate the problem.
This is my first mail greenhorn. I also have this same problem, and thought it is the problem with the garbage collection and I ran a thread to keep the object alive , assuming the garbage collection want collect it. But it didn't work. Please help me on this. M.Prathip