1 Reply Latest reply on Aug 16, 2012 2:47 AM by Xin Zhang

    Is it possible to use this MBean in JBoss AS 7 ?

    Max Korn Newbie

      Hi all,

      in my older JBoss 4 configuration I use the JNDIBindingServiceMgr to bind some JNDI entries from an URL type, like this:

       

      <mbean code="org.jboss.naming.JNDIBindingServiceMgr" name="pm-urls:service=JNDIBindingServiceMgrProperties">

              <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="user/config">

                          <jndi:value type="java.net.URL">

                              http://host/path/file.properties

                    </jndi:value>

                      </jndi:binding>

      </attribute>

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

      </mbean>

       

      I have checked into the naming subsystem but it seems I cannot use anything besides the String type to store values. Is there a way to use this MBean or any other workaround to load the JNDI entries from the URL ?

      Thanks

      Max