0
我正在尝试使用Spring JMX Exporter在我的JBoss Portal Server(2.7.0)中定义一个建立在JBoss AS 4.2.3上的MBean。Spring JMX MBeans,JBoss ListenerService
的MBean为正确的出口,但我想触发一些PortalEvents的现在,这里是我的问题:
如果我在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层。我不想要双重包装。一个导出为war,一个导出为jar,以便我的MBean类可用于门户。