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.
<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>