4 Replies Latest reply on Jan 10, 2015 2:23 PM by wdfink

    HOW-TO config mbean service (jboss-service.xml) for cluster environment (domain) EAP6.3

    echai

      Can anyone give example for configuring mbeans by adding jboss-service.xml in a domain (cluster environment) ? where should I place the jboss-service.xml file ? domain/donfiguration/ ?  the following mbean config I found via internet, is still valid for EAP 6.3? Please kindly share full text of jboss-service.xml as example for my reference. Thanks very much!

       

      ...

      <mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService"

      name="jboss:service=TransactionManager">

      <attribute name="TransactionTimeout">300</attribute>

      <attribute name="ObjectStoreDir">$ {jboss.server.data.dir}

      /tx-object-store</attribute>
      <attribute name="StatisticsEnabled">true</attribute> <!-- HERE -->
      </mbean>
      ....

        • 1. Re: HOW-TO config mbean service (jboss-service.xml) for cluster environment (domain) EAP6.3
          wdfink

          You mean to configure the server - here transactions ?

          As the server implementation is completely different you need to change the standalone or domain.xml file for this. Another option is to use the management interface i.e. the interactive cli.

          • 2. Re: HOW-TO config mbean service (jboss-service.xml) for cluster environment (domain) EAP6.3
            echai

            I have tried to use cli command to write-attribute to make changes of values with positive result. Thanks, Wolf-Dieter Fink!

             

            I have run the cli like it:

             

            /host=master/server=server-one/subsystem=datasources/xa-data-source=testds2/statistics=pool:write-attribute(name=statistics-enabled,value=true)

             

            This works, but...

             

            However, I would like that it can be done every time the server startup automatically. Any ways to make the cli script to be autorun after server startup ? or, I have found the below link that describes about the -service.xml descriptor which is about the mbean vdefault value configuration.

             

            url: JBossDTDs

             

            The below row may be I need

            jboss-service_7_0.xsd-service.xmlJBoss 7.0 MBean service descriptor

             

            any example about the configuration of JBoss 7.0 MBean service descriptor??  Thanks so much!!!

            • 3. Re: HOW-TO config mbean service (jboss-service.xml) for cluster environment (domain) EAP6.3
              echai

              I have tried to use cli command to write-attribute to make changes of values with positive result. Thanks, Wolf-Dieter Fink!

               

              I have run the cli like it:

               

              /host=master/server=server-one/subsystem=datasources/xa-data-source=testds2/statistics=pool:write-attribute(name=statistics-enabled,value=true)

               

              This works, but...

               

              However, I would like that it can be done every time the server startup automatically. Any ways to make the cli script to be autorun after server startup ? or, I have found the below link that describes about the -service.xml descriptor which is about the mbean vdefault value configuration.

               

              url: JBossDTDs

               

              The below row may be I need

              jboss-service_7_0.xsd-service.xmlJBoss 7.0 MBean service descriptor

               

              any example about the configuration of JBoss 7.0 MBean service descriptor??  Thanks so much!!!

              • 4. Re: HOW-TO config mbean service (jboss-service.xml) for cluster environment (domain) EAP6.3
                wdfink

                If you change the configuration with CLI (or other management interfaces) this configuration is stored in your XML and should be set if the server starts next time