WebSphere Extended Deployment, Version 6.0.x
             Operating Systems: AIX, HP-UX, Linux, Solaris, Windows


Loading servlets at startup

When using the servlet API, a Servlet may specify the expressions and partitions associated with an HTTP partitioning facility application. As a result, the servlet must load at application startup to ensure that these specifications are available to the HTTP Partitioning function, and subsequently the ODR. In this manner, the ODR has the sufficient information to forward requests to the appropriate target servers. Note that this is not a requirement if the servlet API is not used to specify expressions and partitions, such as is the case with using the EJB API for this or when including a partitions.xml file with the application.

This can be done by specifying the <load-on-startup> directive with some negative value in the servlet definition (in web.xml of the web archive):
<servlet>
	<servlet-name>ListPartitions</servlet-name>
	<display-name>ListPartitions</display-name>
	<servlet-class>http.wpf.sample.web.ListPartitions</servlet-class>
	<load-on-startup>-1</load-on-startup>
</servlet>



Related concepts
HTTP partitions
Reference topic    

Terms of Use | Feedback

Last updated: Nov 30, 2007 4:03:08 PM EST
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=/com.ibm.websphere.xd.doc/info/WPF51/rwpfservletstart.html