使用Sun JConsole访问Websphere 7 MBean



如何使用Sun的JConsole访问Websphere 7 MBean?

bootclasspath中的必需库(来自Websphere 7):

ibmorbapi.jar
ibmorb.jar
ibmcfw.jar

类路径中所需的库:

com.ibm.ws.admin.client_7.0.0.jar (from Websphere 7)
tools.jar (Sun)
jconsole.jar (Sun)

下面是将一切联系在一起的脚本。根据您的环境更新前4行(在Linux/Unix上-替换环境变量%<name>% to $<name>

set JAVA_HOME=C:toolsjdk1.6.0_19
set WS7_HOME=C:/tools/WebSphere/AppServer
set WS_HOST=127.0.0.1
set WS_PORT=2809
set BOOTPATH=%WS7_HOME%/java/jre/lib/ibmorbapi.jar;%WS7_HOME%/java/jre/lib/ibmorb.jar;%WS7_HOME%/java/jre/lib/ibmcfw.jar
set CLASSPATH=%WS7_HOME%/runtimes/com.ibm.ws.admin.client_7.0.0.jar;%JAVA_HOME%libtools.jar;%JAVA_HOME%libjconsole.jar
%JAVA_HOME%binjconsole -J-Xbootclasspath/p:%BOOTPATH% -J-Djava.class.path=%CLASSPATH% service:jmx:iiop://%WS_HOST%:%WS_PORT%/jndi/JMXConnector

这样就可以了!我要感谢Alan Chan对这篇关于Websphere 6.1的帖子的回应。

相关内容

  • 没有找到相关文章

最新更新