Tuesday, 2 November 2010

Connecting to WLS 11g MBeanServer using jconsole on a windows client

Viewing the MBeans available in WLS 11g from the client side with jconsole is done as follows. The key here is to create the necessary client side JAR file required to access WLS 11g using JMX. In this example we are using JDK 1.6.

Note: The steps for JDK 1.5 are NOT identical to these.

1. First create a wlfullclient.jar with steps as follows on the WLS server. This will give you what you need on the client side to connect to WLS MBean Server.

- Change directories to the server/lib directory.

cd WL_HOME/server/lib

- Use the following command to create wlfullclient.jar in the server/lib directory:

java -jar wljarbuilder.jar

2. Now add/provide wlfullclient.jar to the classpath for jconsole on the client side as follows.

jconsole -J-Djava.class.path=wlfullclient.jar;C:\jdev\jdk\jdk1.6.0_21\lib\jconsole.jar -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote

3. Jconsole should display requesting you to provide the remote server you wish to connect to. In this example I am simply going to connect to the RUNTIME MBean Sever with connect details as follows for the "Remote Process" field. Also I have to add a username/password for the WLS 11g server in order to connect.

service:jmx:iiop://wayne-p2.au.oracle.com:7003/jndi/weblogic.management.mbeanservers.runtime


4. Press the connect button and now you can easily see which MBeans you wish to view.


For more information on the MBeans in WLS 11g refer to this URL.

http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e13951/core/index.html

No comments: