java - How does JVM handle runtime exception in RMI remote method? -
i have been trying find out how jvm handles runtime exception in rmi remote methods. have remote method contains following 2 methods:
dosomething( print "dosomething thread id " + thread.currentthread.getid() ) fail(){ print "fail thread id " + thread.currentthread.getid() throw new runtimeexception }
the behavior saw if method fail() invoked, thread on runtime exception thrown still not terminated. sample output is:
fail thread id 16 stacktrace ... dosomething thread id 16 dosomething thread id 16
the exception caught. caller serverexception runtimeexception nested in cause. executing thread doesn't die.
Comments
Post a Comment