Groups > Weblogic > WebLogic application deployment > Some application lifecycle events not firing for an application




Some application lifecycle events not firing for an
application

Some application lifecycle events not firing for an application
Fri, 4 Apr 2008 14:39:44 -0700
I have a simple application in Weblogic 10.0 MP1 (1005184) whose
weblogic-application.xml registers a listener. The listener implements all 4
pre/post callbacks (see below). Though the preStart() and postStop() are called,
the postStart() and preStop() aren't. The class is definitely registered as a
listener, not a startup or shutdown. Any ideas?


public class WLApplicationListener extends ApplicationLifecycleListener {
    
    public void preStart(ApplicationLifecycleEvent evt) {
        System.out.println("-- preStart");        
    }

    public void postStart(ApplicationLifecycleEvent evt) {
        System.out.println("-- postStart");        
    }

    public void preStop(ApplicationLifecycleEvent evt) {
        System.out.println("-- preStop");        
    }

    public void postStop(ApplicationLifecycleEvent evt) {
        System.out.println("-- postStop");        
    }

Post Reply
about | contact