Using JConsole to view JMX MBeans of Weblogic Server

1. Set the environment using setWLSEnv.cmd 2. Start JMX Console using the below arguments and connect to the local/remote process. jconsole -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote -J-Dcom.sun.tools.jconsole.mbeans.keyPropertyList=Location,type,Type,j2eeType,name,Name -debug   3. Go to the Mbeans tab and view the Mbeans  

Continue reading »

Registering Custom MBeans with Weblogic Server

Registering Custom Mbeans with Weblogic Server. Example.java package jmxMbeans; public class Example implements ExampleMBean { public void sayHello(String str) { System.out.println(“Hello ” + str + “‘!”); } } ExampleMbean.java package jmxMbeans; public interface ExampleMBean { void sayHello(String name); } Index.jsp <%@ page import=”javax.management.MBeanServer”%> <%@ page import=”javax.management.ObjectName”%> <%@ page import=”javax.naming.Context”%> <%@

Continue reading »