MBean Authorization and Creating JMX Policies

Other than the users with admin role, no other user can access and monitor weblogic resources. But sometimes it is important that even the users with the monitor, operator roles should be able to monitor the resources. By default this feature is not available, but we can create JMX policies

Continue reading »

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 »