I noticed that there is a special Pojo2OSGiSchema which only really gets registered in the jboss-osgi-bootstrap.xml that is used for testing:
{code:xml} <bean name="OSGiSingletonSchemaResolverFactory">
<constructor factoryClass="org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory" factoryMethod="getInstance" />
</bean>
<bean name="Pojo2OSGiSchema">
<constructor factoryMethod="getSchemaBindingResolver"><factory bean="OSGiSingletonSchemaResolverFactory" /></constructor>
<install method="mapURIToClass">
<parameter>urn:jboss:pojo2osgi:1.0</parameter>
<parameter>org.jboss.osgi.framework.metadata.internal.OSGiPojoMetaData</parameter>
</install>
<uninstall method="removeURIToClassMapping">
<parameter>urn:jboss:pojo2osgi:1.0</parameter>
</uninstall>
</bean>{code}
With my new start level schema I need to get access to the OSGiSingletonSchemaResolverFactory in jboss-osgi-bootstrap-system.xml so I would like to at least move that factory in there. Should I move the Pojo2OSGiSchema into jboss-osgi-bootstrap-system.xml as well?
I moved it there because it is insufficiently documented and I did not want it to be available in AS. When moving it to bootstrap-system, please check that we dont have side effects in remote target containers.