WEB-INF/web.xml

<web-app xmlns="http://caucho.com/ns/resin">
  <!--
     - Instantiates the resource.
     -
     - The resource will be registered with JMX with the test:type=Basic
     - name.
    -->
  <resource mbean-name="example:name=test" type="example.Test">
  </resource>
</web-app>