public class PreCache
This allows you to avoid the caching hit on the first user requrest that requires XML schema, but is purely optional.
Note: this is purely an initialization servlet, it does not require a servlet-mapping section in your web.xml. To enable this pre-cache logic, simply add the following lines to your web.xml in the servlet definition section:
<servlet> <servlet-name>PreCache</servlet-name> <servlet-class>com.isomorphic.servlet.PreCache</servlet-class> <load-on-startup>2</load-on-startup> </servlet>