【问题标题】:How to access JBoss 5.1 GA 's MBeans?如何访问 JBoss 5.1 GA 的 MBean?
【发布时间】:2012-08-24 09:09:53
【问题描述】:

我想用我的 POJO 类访问 JBoss 服务器的 mbean。我在these site了解了mbeans。但是我不满意。有没有什么方法可以使用java类访问JBoss服务器的mbeans以及如何应用这些mbeans?

【问题讨论】:

    标签: jboss jmx mbeans


    【解决方案1】:

    要获得对本地 JBoss MBean 服务器的引用,最简单的方法是使用 MBeanServerLocator。检查此链接:https://community.jboss.org/wiki/HowCanIGetAReferenceToTheMBeanServer

    如果你想访问远程 JBoss MBean 服务器,那么你可以使用:

    1. JMXConnectionFactory http://docs.oracle.com/javase/1.5.0/docs/api/javax/management/remote/JMXConnectorFactory.html
    2. RMI 适配器http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/Connecting_to_the_JMX_Server-Connecting_to_JMX_Using_RMI.html

    如果您使用 Google 搜索,您可以找到每种方法的大量示例。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-04-04
    • 1970-01-01
    • 2011-04-19
    • 2018-03-27
    • 1970-01-01
    • 2015-12-25
    • 2011-04-18
    相关资源
    最近更新 更多