Version 9


    The org.jboss.naming.JNDIBindingServiceMgr is a service which allows one to bind arbitrary values into JNDI. It supports a single BindingsConfig attribute which conforms to the jndi-binding-service_1_0.xsd. The content of the BindingsConfig is unmarshalled using the JBossXB framework.


    • jndi:bindings - The root of the BindingsConfig attribute.

      • jndi:binding - A single binding into JNDI. Its name attribute is the JNDI name  for the binding.

        • jndi:value - The inherently supported mechanism for specifying the binding value. The value is given by the text of the element. The interpretation of the text can be qualified by the following attributes:

          • type : the fully qualified java type. This is used to determine which java.beans.PropertyEditor to use to convert the text to an object value.

          • editor : The fully qualified name of the java.beans.PropertyEditor to use.

          • trim : Whether the text should be trimmed before using/converting the value.

        • ## other - This is an extension point that allows for an arbitrary value that is represented by an xml fragment from an external namespace. See the "maps/testProps" binding which specifies a java.util.Properties value.




    An example jboss-service.xml deployment is:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 4.0//EN"
       <mbean code="org.jboss.naming.JNDIBindingServiceMgr"
          <attribute name="BindingsConfig" serialDataType="jbxb">
                xs:schemaLocation="urn:jboss:jndi-binding-service:1.0 resource:jndi-binding-service_1_0.xsd"
                <jndi:binding name="urls/jboss-home">
                   <jndi:value type=""></jndi:value>
                <jndi:binding name="hosts/localhost">
                   <jndi:value editor="org.jboss.util.propertyeditor.InetAddressEditor">
                <jndi:binding name="maps/testProps">
                   <java:properties xmlns:java="urn:jboss:java-properties"
                      xs:schemaLocation="urn:jboss:java-properties resource:java-properties_1_0.xsd">