On 27.05.2010 15:43, Andy wrote:
On 27.05.2010 15:31, Andy wrote:
AdminDaemon.java:

This call returns a 'null' object as a/the Server.class instance is never registered with the SystemInstance.
Server server = SystemInstance.get().getComponent(Server.class);

The resulting NullPointerException is not logged, and the server is not shutdown.

The question is, where should this be registered?

Regards,

Andy.



In Main.initServer() or within the Server.init() method - i.e It registers itself upon a call to init?


In addition to this the Server.stop() call should call manager.stop(); 'after' OpenEJB.destroy(); as this initiates a vm shutdown.

public void stop() throws Exception {
        OpenEJB.destroy();
        manager.stop(); //Initiates a vm shutdown....
    }

Reply via email to