0 Replies Latest reply on Mar 13, 2014 10:36 AM by kmaslyk

    Migration jboss5 mbean services to jboss as 7

    kmaslyk

      Hi,

      I have problem with migration of configuration files like beneath to jboss as 7.

      Unfortunetly jboss 7 doesn't support complex object like map in jboss-as-naming subsystem.

      Is there any workaround for that?

       

      <?xml version="1.0" encoding="UTF-8"?>

      <server>

          <mbean code="org.jboss.naming.JNDIBindingServiceMgr"

                 name="jboss.jbank.currencies.conf:service=JNDIBindingServiceMgr">

              <attribute name="BindingsConfig" serialDataType="jbxb">

                  <jndi:bindings

                      xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"

                      xmlns:jndi="urn:jboss:jndi-binding-service:1.0"

                      xs:schemaLocation="urn:jboss:jndi-binding-service:1.0 resource:jndi-binding-service_1_0.xsd"

                  >

        <jndi:binding name="jbank/configuration/detal/currencies/enabled">

                          <jndi:value trim="true" type="java.lang.Boolean">true</jndi:value>

                      </jndi:binding>

       

        <jndi:binding name="jbank/configuration/detal/currencies/values">

                         <java:properties xmlns:java="urn:jboss:java-properties"

                            xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"

                            xs:schemaLocation="urn:jboss:java-properties resource:java-properties_1_0.xsd">

                            <!--<java:property>

                               <java:key>Dolar</java:key>

                               <java:value>USD</java:value>

                            </java:property>

         <java:property>

                               <java:key>Frank</java:key>

                               <java:value>CHF</java:value>

                            </java:property>-->

         <java:property>

                               <java:key>Euro</java:key>

                               <java:value>EUR</java:value>

                            </java:property>

         <java:property>

                               <java:key>Funt</java:key>

                               <java:value>GBP</java:value>

                            </java:property>

        </java:properties>           

                      </jndi:binding>

        </jndi:bindings>

              </attribute>     

              <depends>jboss:service=Naming</depends>

          </mbean>

      </server>