[英]Why does JBoss JMX console not show descriptions of Spring-defined MBeans?
[英]Spring JMX MBeans, JBoss ListenerService
我正在尝试使用Spring JMX Exporter在基于JBoss AS 4.2.3构建的JBoss Portal Server(2.7.0)中定义MBean。
MBean已正确导出,但我现在想触发一些PortalEvent,这是我的问题:
如果我在jboss-service.xml
声明一个服务,则必须为此MBean定义一个依赖项。
<mbean
code="org.jboss.portal.core.event.PortalEventListenerServiceImpl"
name="portal:service=ListenerService,type=login_event"
xmbean-dd=""
xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
<xmbean/>
<depends
optional-attribute-name="Registry"
proxy-type="attribute">portal:service=ListenerRegistry</depends>
<attribute name="RegistryId">login_event</attribute>
<attribute name="ListenerClassName">
de.ac.m.login.PortalSessionEventLogin
</attribute>
</mbean>
也可以在Spring JMX Exporter中定义这种依赖吗? 通过spring导出的原因是,我也想从此MBean访问dao层。 而且我不想双重包装。 一出口作为战争,一出口作为罐子,因此我的MBean类可用于门户。
遗憾的是,无法通过springs jmx导出器。 编写mbean和以编程方式部署mbean似乎是这里的唯一方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.