Posted by shoom013
on March 28, 2010 at 3:09 PM PDT
I have made a simple RMI/IIOP client/server application - in the RMI interface implementation I call a method in another class which extends Thread and creates an instance of itself and runs a thread leaving it: thread instance is started with run() and calling method returns to the query implementation which returns a String. I can see (with java -gc:verbose) RMI server and this thread working for while and then GC kills the thread and the whole RMI server ! Maybe I am doing it wrong - what I wanted to achieve is an asynchronous execution of a method in RMI server JVM. I am using OpenJDK 1.6 on Fedora, but similar thing happens on Sun JDK1.6 ... please, help !