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類可用於門戶。