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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -