"jhalliday" wrote :
| <?xml version="1.0" encoding="UTF-8"?>
| | <deployment xmlns="urn:jboss:bean-deployer:2.0">
| |
| | <bean name="MBeanExporter"
class="org.jboss.system.microcontainer.jmx.ServiceControllerLifecycleCallback">
| | <property name="serviceController"><inject
bean="JMXKernel" property="serviceController"/></property>
| | </bean>
| | <bean name="TransactionManager"
class="com.arjuna.ats.jbossatx.jta.TransactionManagerService">
| |
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=TransactionManager",
exposedInterface=com.arjuna.ats.jbossatx.jta.TransactionManagerServiceMBean.class,
registerDirectly=true)</annotation>
| |
| | <property name="transactionTimeout">300</property>
| | <property
name="objectStoreDir">${jboss.server.data.dir}/tx-object-store</property>
| |
| | <install bean="MBeanExporter" method="install">
| | <parameter><inject
fromContext="context"/></parameter>
| | </install>
| | <uninstall bean="MBeanExporter"
method="uninstall">
| | <parameter><inject
fromContext="context"/></parameter>
| | </uninstall>
| | </bean>
| |
| | </deployment>
| |
|
| So now I get two copies of the transaction manager bean instantiated. Huh? I want one
instance, not two. Where the heck did the other one come from? I guess perhaps I've
not expressed the desired config properly? I want one object behaving as both a bean and
an mbean, not two separeate objects. Is there some other way of achieving that?
|
Either use @JMX attribute or the MBeanExporter, don't do both.
You don't have two objects, you have two attempts at MBeanRegistration.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140140#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...