[jboss-dev-forums] [Design of JBossXB] - Re: Registering an XSD for use by a SchemaResolverDeployer
alex.loubyansky@jboss.com
do-not-reply at jboss.com
Thu Apr 2 04:37:35 EDT 2009
The thing that resolves schemas is JBossEntityResolver. http://anonsvn.jboss.org/repos/common/common-core/trunk/src/main/java/org/jboss/util/xml/JBossEntityResolver.java
For details you can check its resolveEntity method.
You can specify schemaLocation in XML. Or make it available in the classpath.
As to the META-INF, seems like a good idea, but to get to resources there using thread classloader I think you'd have to prefix the resource name with 'META-INF/'? Which JBossEntityResolver doesn't do. It tries the resource name as is first and if that failed then with prefixes 'dtd/' and 'schema/'.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222902#4222902
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222902
More information about the jboss-dev-forums
mailing list