WebSphere 应用程序服务器 7.0 GUI 管理控制台和 MBean
我是 WAS 的新手,目前使用 WAS 7.0 我在 WAS 中部署的应用程序在启动时注册了一些 MBean,我想知道如何从管理控制台(GUI)监视/获取与这些注册的 MBean 相关的信息曾是。 我在管理控制台中看到许多选项,但很困惑在哪里可以找到与应用程序启动时在 WAS JMX 基础设施中注册的 MBean 相关的信息? 或者只能通过编程方式获取它? 如果您可以推荐一些资源,会有帮助吗?
I am new to WAS, and currently using WAS 7.0 The application I am deploying in WAS registers some MBeans when it starts up , I would like to know how to monitor/get info related to these registered MBeans from the admin console( GUI) of WAS. I see many options there in the admin console, but getting confused where to find the info related to MBeans that got registered within the WAS JMX Infrastructure when the application started up? or is it only possible programmatically to obtain it? If you can suggest some resources, it will be helpful?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过以下任一方式访问已注册的这些 mbean:
JConsole - 连接到 WAS 有点棘手,这是我运行它的批处理:
echo URL 连接字符串为:service:jmx:iiop://you-hostname-here:2809/jndi/JMXConnector
设置 JAVA_HOME=C:\Progra~1\IBM\SDP\jdk
设置 CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\jconsole.jar
设置 CLASSPATH=%CLASSPATH%;tools.jar;com.ibm.ws.admin.client_7.0.0.jar
"C:\Program Files\IBM\SDP\jdk\bin\jconsole.exe" -J-Djava.class.path=%CLASSPATH%
WSAdmin 脚本 - 示例:
beanNameString = AdminControl.queryNames('type=youMbeanName,*')
print AdminControl.getAttribute(beanNameString, 'someAttribute')
AdminControl.invoke(beanNameString, 'someMethod', 'parameter1')
以编程方式。
我将以编程方式将其留给您:)
You could get to these mbeans you've registered through either:
JConsole - A bit tricky to connect to WAS with, here's my batch for running it:
echo URL connection string is: service:jmx:iiop://you-hostname-here:2809/jndi/JMXConnector
set JAVA_HOME=C:\Progra~1\IBM\SDP\jdk
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\jconsole.jar
set CLASSPATH=%CLASSPATH%;tools.jar;com.ibm.ws.admin.client_7.0.0.jar
"C:\Program Files\IBM\SDP\jdk\bin\jconsole.exe" -J-Djava.class.path=%CLASSPATH%
WSAdmin script - example:
beanNameString = AdminControl.queryNames('type=youMbeanName,*')
print AdminControl.getAttribute(beanNameString, 'someAttribute')
AdminControl.invoke(beanNameString, 'someMethod', 'parameter1')
programatically.
I'll leave this to you :)