0 Replies Latest reply on Jun 22, 2011 12:36 AM by WU Ryan

    setPartitionName() not defined when changing from 3.2.6 to AS5.1

    WU Ryan Newbie

      When I try to change the Jboss from 3.2.6 to AS5, I found there is no setPartitionName() when I "extends HAServiceMBeanSupport"

       

      However, in my previous project, I use this function to set partitionname

       

       

       

      my jboss-service,xml of 3.2.6:

      <mbean code="sccHANotificationBroadcaster"

                name="jboss.notification:service=sccHANotificationBroadcaster"

                interface="sccHANotificationBroadcasterMBean">

      <attribute name="PartitionName">01-sccDefaultPartition</attribute>

      </mbean>

       

       

       

      my notificationbroadcaster code:

      protected void startService() throws Exception

      {

           super.startService();

           addNotificationListener(this, null, null);

           m_notificationType = InetAddress.getLocalHost().getHostAddress();

           System.out.println("[sccHANotificationBroadcaster] mbean startService...");

      }

       

      public void setPartitionName(String name)

      {

            super.setPartitionName(name);

      }

       

       

       

      Is there anyone could help me to solve it?

      This problem disturb me a lot.