Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-693

Object Store Browser mbean does not initialise properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 4.10.0
    • 4.9.0
    • Tooling
    • None
    • Hide

      Add the following to transaction-jboss-beans.xml (this one is in trunk)

      <bean name="ObjectStoreBrowserBean" class="com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBean">
      <constructor factoryClass="com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBean" factoryMethod="getObjectStoreBrowserBean"/>

      <demand state="Create">ObjectStoreEnvironmentBean</demand>
      </bean>

      or to use a different object store:

      <bean name="ObjStoreBean" class="com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBean">
      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.jta:name=ObjStoreBean", exposedInterface=com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBean.class, registerDirectly=true)</annotation>
      <constructor>
      <parameter>1</parameter>
      <parameter>path to object store</parameter>
      </constructor>
      </bean>

      Show
      Add the following to transaction-jboss-beans.xml (this one is in trunk) <bean name="ObjectStoreBrowserBean" class="com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBean"> <constructor factoryClass="com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBean" factoryMethod="getObjectStoreBrowserBean"/> <demand state="Create">ObjectStoreEnvironmentBean</demand> </bean> or to use a different object store: <bean name="ObjStoreBean" class="com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBean"> <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.jta:name=ObjStoreBean", exposedInterface=com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBean.class, registerDirectly=true)</annotation> <constructor> <parameter>1</parameter> <parameter>path to object store</parameter> </constructor> </bean>
    • Low

    Description

      The default com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBean does not initialise itself properly when running in the AS causing a null pointer reference when displaying the bean in a JMX client.
      Also the need for the jmxEnabled property of ObjectStoreEnvironmentBean is superfluous.

      See workaround for how to initialise the bean via transaction-jboss-beans.xml.

      Attachments

        Activity

          People

            rhn-engineering-mmusgrov Michael Musgrove
            rhn-engineering-mmusgrov Michael Musgrove
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: