|
From: Philipp K. <phi...@gm...> - 2008-06-03 19:19:11
|
Hello! I am using the WrapperSimpleApp and register in my own code a WrapperEventListener like this: WrapperManager.addWrapperEventListener(this, WrapperEventListener.EVENT_FLAG_CONTROL | WrapperEventListener.EVENT_FLAG_SERVICE | WrapperEventListener.EVENT_FLAG_CORE); it should be therefore informed about all events. However only tick events from CORE are sent. I guess the WrapperSimpleApp kills the event notifications by calling WrapperManager.stop() inside its controlEvent method. My assumption was that before WrapperSimpleApp gets the event delivered all listeners are informed about it before-hand or otherwise they have no possibility to react and cleanly exit in case of a service shutdown. Interestingly the CTRL+C event is delivered when running in console mode. I am currently building a Extender for this wrapper for an OSGi environment where you need to cleanly shut down the OSGi framework and not just System.exit(). Willing to contribute the final bundle I first need to get this issue worked out. Any ideas Leif? Thanks in advance, Phil -- |