Creating Application Life Cycle Listener

Create a Class that extends ApplicationLifecycleListener. ApplicationListener.java package demo; import weblogic.application.ApplicationException; import weblogic.application.ApplicationLifecycleEvent; import weblogic.application.ApplicationLifecycleListener;; public class ApplicationListener extends ApplicationLifecycleListener { public void preStart(ApplicationLifecycleEvent evt) { System.out.println(“Event preStart received”); } public void postStart(ApplicationLifecycleEvent evt) { System.out.println(“Event postStart received”); } public void preStop(ApplicationLifecycleEvent evt) { System.out.println(“Event preStop received”); } public void

Continue reading »