mingetty
Jul 4th, 2007, 02:06 PM
I've made a few simple beans to export using the JMX Exporter in Spring.
<bean id="exporter"
class="org.springframework.jmx.export.MBeanExporter"
lazy-init="false">
<property name="beans">
<map>
<entry key="Movement:name=SchedulerMBean,service=MovementServi ce"
value-ref="SchedulerMBean"/>
</map>
</property>
</bean>
If I make a web-app and put a "depends" tag in my jboss-web.xml, it can't depend on the MBean I exported in my spring app. Is this normal? It works fine with Mbeans deployed as SAR with jboss.
-Avinash
<bean id="exporter"
class="org.springframework.jmx.export.MBeanExporter"
lazy-init="false">
<property name="beans">
<map>
<entry key="Movement:name=SchedulerMBean,service=MovementServi ce"
value-ref="SchedulerMBean"/>
</map>
</property>
</bean>
If I make a web-app and put a "depends" tag in my jboss-web.xml, it can't depend on the MBean I exported in my spring app. Is this normal? It works fine with Mbeans deployed as SAR with jboss.
-Avinash