<s1 title="Admin">

<p>Resin 2.0.5 provides a primitive status servlet /resin-status.  It's
disabled by default to avoid any security issues.  The servlet must
be enabled explicitly, like:</p>

<example>
&lt;web-app id='/admin'>
  &lt;allow-admin>true&lt;/allow-admin>
  &lt;servlet-mapping url-pattern='/resin-status'
                   servlet-name='com.caucho.http.servlet.ResinStatusServlet'>
    &lt;init-param enable='read'/>
  &lt;/servlet-mapping>

  &lt;!-- only allow the localhost to use the admin --> 
  &lt;security-constraint>
    &lt;ip-constraint>127.0.0.1/32&lt;/ip-constraint>

    &lt;web-resource-collection>
      &lt;url-pattern>/*&lt;/url-pattern>
    &lt;/web-resource-collection>
  &lt;/security-constraint>
&lt;/web-app>
</example>

<p>The allow-admin also puts a com.caucho.http.admin.ApplicationAdmin
object in the servlet context as caucho.admin.</p>

</s1>


