Pool Shutdown via a servlet

This page explains how to shutdown primrose using a servlet's destroy method, when your container shuts down.

Under a webapp's web.xml, add a mapping for the following servlet :

	<servlet>
			<servlet-name>PoolDestructorServlet</servlet-name>

			<servlet-class>uk.org.primrose.PoolDestructorServlet</servlet-class>
			<load-on-startup>1</load-on-startup>
	</servlet>