2 Replies Latest reply on Nov 1, 2007 6:36 PM by Scott Stark

    Adding a new SchemaBindingInitializer

    Kabir Khan Master

      Is there no way to add a new namespace-SchemaBindingInitializer binding other that modifying SingletonSchemaResolverFactory in the JBoss XB project?

        • 1. Re: Adding a new SchemaBindingInitializer
          Ales Justin Master

          + fixing JBossEntityResolver. ;-)

          • 2. Re: Adding a new SchemaBindingInitializer
            Scott Stark Master

            Use the org.jboss.xb.binding.sunday.unmarshalling.SchemaResolverConfig bean schemaInitializers property. You could add the following to the server metadata-beans.xml if that is where you need the initializer:

             <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">
             <!-- EarMetaData -->
             <entry>
             <key>application</key>
             <value>org.jboss.metadata.ear.spec.Ear14MetaData</value>
             </entry>
            ...
             </property>
             </bean>
            
             <property name="schemaInitializers">
             <map keyClass="java.lang.String" valueClass="java.lang.String">
             <entry>
             <key>location</key>
             <value>initializer-class</value>
             </entry>
             </property>
             </bean>
            
            </deployment>