com.isomorphic.servlet
Class PreCache

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.isomorphic.servlet.BaseServlet
                    |
                    +--com.isomorphic.servlet.PreCache
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PreCache
extends com.isomorphic.servlet.BaseServlet

This is an optional init servlet. If you register this servlet in your web.xml, it will pre-cache SmartClient framework datasource schema objects for use in XML->JS translation and built-in datasource operations.

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>
 

See Also:
Serialized Form