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

Object Store Browser mbean does not initialise properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 4.9.0
    • Fix Version/s: 4.10.0
    • Component/s: Tooling
    • Labels:
      None
    • Workaround Description:
      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>
    • Estimated Difficulty:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mmusgrov Michael Musgrove
                Reporter:
                mmusgrov Michael Musgrove
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: