Garnachito
New Member
All,In our "higher" environments, we aren't allowed access to the world to fetch resources. Our JBoss application uses JPA, and our logs show that we are trying to fetch the persistence_2_0.xsd from the outside world, and failing due to firewall restrictions.How can I teach jboss to intercept requests for the schema file, and provide a locally managed file instead?While I'm asking in the context of the persistence schema, there are other services we use that have similar problems. In some of these cases, the schema includes other external resources, and we would like to be able to intercept the subsequent calls to serve instead locally managed resources.For instance, if one of our XML files has:\[code\]xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" \[/code\]How can I intercept\[code\]http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd\[/code\]and provide \[code\]/opt/local/schemas/persistence_2_0.xsd\[/code\]without going to the outside world?