<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: testBinding.xml 39812 2006-01-11 06:10:13Z starksm $ -->

<!-- An example legacy jboss-service.xml that contains an attribute type from
an unknown namespace with a schmema binding unknown to the SARDeployer.
-->
<server>
   <mbean code="org.jboss.naming.JNDIBindingService"
         name="jboss.tests:service=JNDIBindingService">
      <attribute name="Bindings" 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 jndi-binding-service_1_0.xsd"
            >
            <jndi:binding name="ctx1/key1">
               <jndi:value>value1</jndi:value>
            </jndi:binding>
            <jndi:binding name="ctx1/user.home">
               <jndi:value>${user.home}</jndi:value>
            </jndi:binding>
            <jndi:binding name="ctx1/key2">
               <jndi:value type="java.net.URL">http://www.jboss.org</jndi:value>
            </jndi:binding>
            <jndi:binding name="ctx2/key1">
               <custom:properties xmlns:custom="urn:jboss:custom-object-binding"
                  xs:schemaLocation="urn:jboss:custom-object-binding custom-object-binding.xsd">
                  <custom:property>
                     <custom:key>key1</custom:key>
                     <custom:value>value1</custom:value>
                  </custom:property>
                  <custom:property>
                     <custom:key>key2</custom:key>
                     <custom:value>value2</custom:value>
                  </custom:property>
               </custom:properties>
            </jndi:binding>

            <jndi:binding name="hosts/localhost">
               <jndi:value editor="org.jboss.util.propertyeditor.InetAddressEditor">
                  127.0.0.1
               </jndi:value>
            </jndi:binding>

         </jndi:bindings>
      </attribute>
   </mbean>

</server>
