Administration Servlet
Resin

Change Log
Documentation

Orientation
Features
Installation
Configuration
Web Applications
JSP
Servlets and Filters
Databases
Admin (JMX)
Security
XML and XSLT
XTP
Resources (JNDI)
Performance
Protocols
Third-party
Troubleshooting

Servlet
Instrumenting
Tutorials
Admin (JMX)
Admin (JMX)
Instrumenting

Resin provides a primitive status servlet /admin/resin-status. It's disabled by default to avoid any security issues. The servlet must be enabled explicitly.

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

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

    <web-resource-collection>
      <url-pattern>/*</url-pattern>
    </web-resource-collection>
  </security-constraint>
</web-app>

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


Admin (JMX)
Admin (JMX)
Instrumenting
Copyright © 1998-2003 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark, and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc.