2 Replies Latest reply on Oct 11, 2012 7:43 AM by Cristian Serje

    Incomplete configuration returned by jboss-service.xml mbeans

    Cristian Serje Newbie

      Hello,

       

      I have been trying to get the configuration from an Mbean configured in the jboss'service.xml file, i can get all of the attributes but the long ones, it seem that for some enviroment jboss its returning me the configuration incomplete.

       

      For example.

       

      if i have something like this to configure some country properties

       

      <attribute name="Countries">AR=3XXXXXXZZZZZZZEEEEE1123355EEE

      AT=3XXXXXXZZZZZZZEEEEE1123355EEE

      AU=3XXXXXXZZZZZZZEEEEE1123355EEE

      BE_NL=3XXXXXXZZZZZZZEEEEE1123355EEE

      BE_FR=3XXXXXXZZZZZZZEEEEE1123355EEE

      CA_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

      CA_FR=3XXXXXXZZZZZZZEEEEE1123355EEE

      CH_DE=3XXXXXXZZZZZZZEEEEE1123355EEE

      CH_IT=3XXXXXXZZZZZZZEEEEE1123355EEE

      CH_FR=3XXXXXXZZZZZZZEEEEE1123355EEE

      CL=3XXXXXXZZZZZZZEEEEE1123355EEE

      DE=3XXXXXXZZZZZZZEEEEE1123355EEE

      DK=3XXXXXXZZZZZZZEEEEE1123355EEE

      ES=3XXXXXXZZZZZZZEEEEE1123355EEE

      FI=3XXXXXXZZZZZZZEEEEE1123355EEE

      FR=3XXXXXXZZZZZZZEEEEE1123355EEE

      HK_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

      IE=3XXXXXXZZZZZZZEEEEE1123355EEE

      JP_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

      MX=3XXXXXXZZZZZZZEEEEE1123355EEE

      NL=3XXXXXXZZZZZZZEEEEE1123355EEE

      NO=3XXXXXXZZZZZZZEEEEE1123355EEE

      NZ=3XXXXXXZZZZZZZEEEEE1123355EEE

      SE=3XXXXXXZZZZZZZEEEEE1123355EEE

      SG_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

      UK_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

      US_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

      VE=3XXXXXXZZZZZZZEEEEE1123355EEE

      ZA=3XXXXXXZZZZZZZEEEEE1123355EEE

      PL=3XXXXXXZZZZZZZEEEEE1123355EEE

      KR=3XXXXXXZZZZZZZEEEEE1123355EEE

      CZ=3XXXXXXZZZZZZZEEEEE1123355EEE

      IT=3XXXXXXZZZZZZZEEEEE1123355EEE

      IL_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

      RU=3XXXXXXZZZZZZZEEEEE1123355EEE

      HR=3XXXXXXZZZZZZZEEEEE1123355EEE

      SK=3XXXXXXZZZZZZZEEEEE1123355EEE

      SI=3XXXXXXZZZZZZZEEEEE1123355EEE

      UA_RU=3XXXXXXZZZZZZZEEEEE1123355EEE

      UA_UA=3XXXXXXZZZZZZZEEEEE1123355EEE

      GR=3XXXXXXZZZZZZZEEEEE1123355EEE

      BR_PT=3XXXXXXZZZZZZZEEEEE1123355EEE

      PT=3XXXXXXZZZZZZZEEEEE1123355EEE</attribute>

       

      it returnes,

      _EN=3XXXXXXZZZZZZZEEEEE1123355EEE

      RU=3XXXXXXZZZZZZZEEEEE1123355EEE

      HR=3XXXXXXZZZZZZZEEEEE1123355EEE

      SK=3XXXXXXZZZZZZZEEEEE1123355EEE

      SI=3XXXXXXZZZZZZZEEEEE1123355EEE

      UA_RU=3XXXXXXZZZZZZZEEEEE1123355EEE

      UA_UA=3XXXXXXZZZZZZZEEEEE1123355EEE

      GR=3XXXXXXZZZZZZZEEEEE1123355EEE

      BR_PT=3XXXXXXZZZZZZZEEEEE1123355EEE

      PT=3XXXXXXZZZZZZZEEEEE1123355EEE

       

       

      For some reason jboss its cutting in random places the long configurations, i was looking for hidden chars in that place where its cutting with no success.

       

      Any idea about it.

      Thanks in advance

      Regards

        • 1. Re: Incomplete configuration returned by jboss-service.xml mbeans
          jaikiran pai Master

          Cristian, welcome to the forums!

           

          What exact APIs do you use to get that information? Can you please post the relevant code?

          • 2. Re: Incomplete configuration returned by jboss-service.xml mbeans
            Cristian Serje Newbie

            Hello, and thanks

             

            Well the read the Mbean through:

            MBeanServer server = java.lang.management.ManagementFactory.getPlatformMBeanServer();

             

            and reading the configuration from the mbean that its in the jboss-services.xml

            something like..

             

            <mbean name="Settings=provider,enviroment=unstable"

                    code="com.eskupina.services.payment.mbean.HeidelpaySettings">

                    <attribute name="Url">http://www.xml.hththl.com</attribute>

                    <attribute name="Mode">TEST</attribute>

                  

            <attribute name="Countries">AR=3XXXXXXZZZZZZZEEEEE1123355EEE

            AT=3XXXXXXZZZZZZZEEEEE1123355EEE

            AU=3XXXXXXZZZZZZZEEEEE1123355EEE

            BE_NL=3XXXXXXZZZZZZZEEEEE1123355EEE

            BE_FR=3XXXXXXZZZZZZZEEEEE1123355EEE

            CA_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

            CA_FR=3XXXXXXZZZZZZZEEEEE1123355EEE

            CH_DE=3XXXXXXZZZZZZZEEEEE1123355EEE

            CH_IT=3XXXXXXZZZZZZZEEEEE1123355EEE

            CH_FR=3XXXXXXZZZZZZZEEEEE1123355EEE

            CL=3XXXXXXZZZZZZZEEEEE1123355EEE

            DE=3XXXXXXZZZZZZZEEEEE1123355EEE

            DK=3XXXXXXZZZZZZZEEEEE1123355EEE

            ES=3XXXXXXZZZZZZZEEEEE1123355EEE

            FI=3XXXXXXZZZZZZZEEEEE1123355EEE

            FR=3XXXXXXZZZZZZZEEEEE1123355EEE

            HK_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

            IE=3XXXXXXZZZZZZZEEEEE1123355EEE

            JP_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

            MX=3XXXXXXZZZZZZZEEEEE1123355EEE

            NL=3XXXXXXZZZZZZZEEEEE1123355EEE

            NO=3XXXXXXZZZZZZZEEEEE1123355EEE

            NZ=3XXXXXXZZZZZZZEEEEE1123355EEE

            SE=3XXXXXXZZZZZZZEEEEE1123355EEE

            SG_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

            UK_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

            US_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

            VE=3XXXXXXZZZZZZZEEEEE1123355EEE

            ZA=3XXXXXXZZZZZZZEEEEE1123355EEE

            PL=3XXXXXXZZZZZZZEEEEE1123355EEE

            KR=3XXXXXXZZZZZZZEEEEE1123355EEE

            CZ=3XXXXXXZZZZZZZEEEEE1123355EEE

            IT=3XXXXXXZZZZZZZEEEEE1123355EEE

            IL_EN=3XXXXXXZZZZZZZEEEEE1123355EEE

            RU=3XXXXXXZZZZZZZEEEEE1123355EEE

            HR=3XXXXXXZZZZZZZEEEEE1123355EEE

            SK=3XXXXXXZZZZZZZEEEEE1123355EEE

            SI=3XXXXXXZZZZZZZEEEEE1123355EEE

            UA_RU=3XXXXXXZZZZZZZEEEEE1123355EEE

            UA_UA=3XXXXXXZZZZZZZEEEEE1123355EEE

            GR=3XXXXXXZZZZZZZEEEEE1123355EEE

            BR_PT=3XXXXXXZZZZZZZEEEEE1123355EEE

            PT=3XXXXXXZZZZZZZEEEEE1123355EEE</attribute>

                    <attribute name="ConnectionTimeout">10000</attribute>

                    <attribute name="SocketTimeout">20000</attribute>

                </mbean>

             

            all of my properties are readed properly, the problem its the attribute Countries its not returning the whole information in some of the enviroment that i have configured, i have tried to reproduced several times, and it seems there a problem with the jboss-service.xml file. For some reason the String its cutting when it comes to the.

            setCountries(String countries)

            comes already without the whole information.

             

            Sorry i cannot give u further info, but its all the info i have got, for some reason Jboss7 doesnt parse properly the files in the jboss-service.xml