Class PreCache

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.isomorphic.servlet.BaseServlet
com.isomorphic.servlet.PreCache
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class PreCache extends 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: