JBoss JMX旋转运行时未注册。

| 我在Solaris 10服务器上的“ 0”脚本有问题。 我必须阅读一些属性,例如
jboss.system
和其他属性。 取决于jboss服务器的所有属性都可以,但是当我尝试时 从ѭ2中读取属性时,发生以下错误:
javax.management.InstanceNotFoundException: java.lang:type=Runtime is not registered.
    
已邀请:
        问题是java.lang:type = Runtime是已注册的Platform MBeanServer MBean,默认情况下,旋转将您连接到JBoss MBeanServer,默认情况下,该JBoss MBeanServer将不会注册RuntimeMXBean服务器。 假设您只想访问系统属性,最简单的解决方法是将旋转指向JBoss MBean jboss:name = SystemProperties,type = Service。 MBean公开:
String get(String key)
String get(String key, String default)
或检索所有值,
Map shopwAll()
其他更费力的解决方案包括: 在JBoss MBeanServer中注册Platform MBeanServer MXBean。看到这个问题。 在JVM中启用管理代理,并使用JMX连接器连接到Platform MBeanServer。看到这个问题。 使用Attach API通过进程ID连接到JBoss Server的Platform MBeanServer。然后,您可以引用MXRuntime MBean。     

要回复问题请先登录注册