3 Replies Latest reply on May 20, 2009 12:29 PM by Joe W

    Singleton mbean

    Roelof Naude Newbie

      hi

      we are currently running a very old version of jboss (4.0.2). in the process of migrating/upgrading to jboss 5.0 i've run into a problem related to a Singleton mbean.

      the error is:
      java.lang.IllegalStateException: HAPartition property must be set before starting HAServiceMBeanSupport

      the relevant descriptor:

       <!-- Singleton Connection Controller -->
       <mbean code="za.co.mtn.usa.service.protocol.ConnectionController"
       name="mtn_usa.system:service=ConnectionController"
       xmbean-dd="resource:usa_xmbean_ConnectionController.xml">
       <depends>HAPartition</depends>
       <property name="HAPartition"><inject bean="HAPartition"/></property>
       </mbean>
      
       <!-- Singleton controller for the ConnectionController -->
       <mbean code="org.jboss.ha.singleton.HASingletonController"
       name="mtn_usa.system:service=ConnectionController,controller=Singleton">
       <property name="HAPartition"><inject bean="HAPartition"/></property>
       <depends optional-attribute-name="TargetName">
       mtn_usa.system:service=ConnectionController
       </depends>
       <attribute name="TargetStartMethod">startSingleton</attribute>
       <attribute name="TargetStopMethod">stopSingleton</attribute>
       </mbean>
      


      i also looked at the example in the docs:
      http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Server_Configuration_Guide/beta500/html/ch18s11s02.html

      that unfortunately resulted in the same error. has anyone run into this? any idea what can be done to resolve the problem?

      thanks.