3 Replies Latest reply: Dec 15, 2009 12:58 AM by jaikiran pai RSS

    SchemaResolverConfig MC bean and its usage in AS

    jaikiran pai Master

      I am trying to integrate EJB3.1 specific things in AS trunk. I noticed that there's a metadata-deployers-jboss-beans.xml with a SchemaResolverConfig MC bean:

       

      <!-- The schema location to JBossXB binding class mappings. We specify the dtd/xsd name
          of the schema as the location to work with legacy dtd as well as namespace based
          documents.
          -->
         <bean name="SchemaResolverConfig"
            class="org.jboss.xb.binding.sunday.unmarshalling.SchemaResolverConfig">
            
            <!-- schemaLocation to JBossXBuilder binding classes -->
            <property name="bindingClassesByLocations">
               <map keyClass="java.lang.String" valueClass="java.lang.String">
          ....// trimmed
                  
                  <!-- EjbJarMetaData -->
                  <entry>
                     <key>ejb-jar</key>
                     <value>org.jboss.metadata.ejb.spec.EjbJar20MetaData</value>
                  </entry>
                  <entry>
                     <key>ejb-jar_1_1.dtd</key>
                     <value>org.jboss.metadata.ejb.spec.EjbJar1xMetaData</value>
                  </entry>
                  <entry>
                     <key>ejb-jar_2_0.dtd</key>
                     <value>org.jboss.metadata.ejb.spec.EjbJar20MetaData</value>
                  </entry>
                  <entry>
                     <key>ejb-jar_2_1.xsd</key>
                     <value>org.jboss.metadata.ejb.spec.EjbJar21MetaData</value>
                  </entry>
                  <entry>
                     <key>ejb-jar_3_0.xsd</key>
                     <value>org.jboss.metadata.ejb.spec.EjbJar30MetaData</value>
                  </entry>
                  
                  <!-- JBossMetaData -->
                 ...//trimmed 
                  <entry>
                     <key>jboss_5_0.dtd</key>
                     <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
                  </entry>            
                  <entry>
                     <key>jboss_5_0.xsd</key>
                     <value>org.jboss.metadata.ejb.jboss.JBoss50MetaData</value>
                  </entry>
                  <entry>
                     <key>jboss_5_1.xsd</key>
                     <value>org.jboss.metadata.ejb.jboss.JBoss51MetaData</value>
                  </entry>
                  ... a lot more
         </bean>
      
      

       

      How and where is this MC bean being used? I don't see its references in any other jboss-beans.xml. Is it mandatory to map a (new ejb-jar_3_1.xsd) xsd file to a class here?

       

      Message was edited by: jaikiran pai - I just hope the editor shows up the contents correctly this time. I have spent last 15-20 minutes trying to post this :(