2 Replies Latest reply on Oct 3, 2007 5:01 PM by Brian Stansberry

    HASingletonMBeanExample in cluster

    Kumar Pandey Newbie

      I'm testing the cluster singleton feature in Jboss 4.2.1.GA version.

      -c all starts the all server which has cluster-examples-service.xml under all\farm.

      When the sever comes up , under jmx web-console I do not see
      jboss.example domain to see the details for HASingletonMBeanExample mbean.

      <mbean code="org.jboss.ha.singleton.examples.HASingletonMBeanExample"

      Doesn't this declaration in cluster-examples-service.xml means that there should be a jboss.examples domain accessible from jmx-webconsole.

      I do not see any errors in log either.

        • 1. Re: HASingletonMBeanExample in cluster
          Kumar Pandey Newbie

          OK , the issue is with the file cluster-examples-service.xml not being well formed. If you open it in a xml editor you'll notice that comment tags have space between them. Fixed all those and now HASingletonMBeanExample is deploying fine and I see jboss.examples domain in jmx-console :)

          • 2. Re: HASingletonMBeanExample in cluster
            Brian Stansberry Master

            You found it before I could reply. :)

            The intent is that those beans are commented out, as we don't want to deploy example services in a real server. Whoever did the commenting out did so in a highly obscure and easy to miss fashion. Makes it easy to uncomment the beans, but only if you pay close attention and see the pattern.

            TBH, I'm not sure why that file is there at all (since we don't want to deploy example services in a real server.) It was there before I started at JBoss and its never come up on my priority list to see if there's a reason not to include it.