|
From: Hubert F. <hub...@ab...> - 2007-06-29 15:50:48
|
In my log I see the following WrapperManager Debug: System.exit appears to have been called from within the WrapperManager Debug: WrapperListener.stop() method. But: Nobody calls System.exit(), this happens because the WrapperManager.privilegedClassInit() is called twice: First time called from thread Wrapper-Connection on reveive of message WRAPPER_MSG_STOP. Second time called from thread Wrapper-Shutdown-Hook Everything works so far, I don't see that I missed anything. Could anybody please shed some light on this? another problem: Because I red, that the stop() method should return quickly, I created a thread in my stop() method to shutdown the application and return immediately. This did not work, the application then exited before all application threads were cleaned up. Looking in the code I saw that Wrapper assumes that shutdown is completed if stop() method returns. Question: Is this the way it is supposed to work? Does Wrapper assume that appliation is ready to shutdown if stop() returns? Thanks for helping out. Regards Hubert |