5 Accessing Custom MBeans

This chapter describes ways to access your custom MBeans by means other than programmatic JMX access to them. You can use any JMX-compliant management system to access your MBeans. See the Oracle Technology Network Web site, which provides links to books, white papers, and other information on JMX: http://www.oracle.com/technetwork/java/javase/tech/javamanagement-140525.html.

This chapter includes the following sections:

Accessing Custom MBeans from JConsole

The JDK includes JConsole, a Swing-based JMX client that you can use to browse MBeans. You can browse the MBeans in any WebLogic Server MBean server and in the JVM platform MBean server.

Oracle recommends that you use JConsole only in a development environment; it consumes significant amounts of resources. See Using JConsole to Monitor Applications at http://www.oracle.com/technetwork/articles/java/jconsole-1564139.html. Also, see Managing WebLogic Servers With JConsole at https://blogs.oracle.com/WebLogicServer/entry/managing_weblogic_servers_with.

For more information about accessing WebLogic Server MBeans from JConsole with wlthint3client.jar and weblogic.jar, see Using JConsole To Access WebLogic Server MBeans in Developing Standalone Clients for Oracle WebLogic Server.

Note:

The wljmxclient.jar and wlclient.jar are removed in WebLogic Server 14c (14.1.1.0.0). If you are using an earlier version of WebLogic Server that has wljmxclient.jar and wlclient.jar, see Accessing Custom MBeans from JConsole in the Developing Manageable Applications Using JMX for Oracle WebLogic Server document for 12c (12.2.1.4.0).

Accessing Custom MBeans from WebLogic Scripting Tool

If you register your MBeans in the Runtime MBean Server or Domain Runtime MBean Server, you can use WebLogic Scripting Tool to access your custom MBeans. See Accessing Other WebLogic MBeans and Custom MBeans in Understanding the WebLogic Scripting Tool.

Accessing Custom MBeans from an Administration Console Extension

You can extend the WebLogic Server Administration Console by creating Java Server Pages (JSPs) that conform to a specific template. Your JSP can include JMX code that connects to the JVM platform MBean server, the WebLogic Server Runtime MBean Server, or the Domain Runtime MBean Server and looks up your MBeans.