WEB-INF/resin-web.xml

<!--
   - web.xml configuration file for the Hessian addition example.
  -->
<web-app xmlns="http://caucho.com/ns/resin">

  <servlet-mapping url-pattern="/hello/*"
                   servlet-class="example.HelloServiceImpl"
                   jndi-name="service/HelloService">

    <protocol type="hessian"/>
  </servlet-mapping>

  <web-service-client jndi-name="hessian/HelloService">
    <url>hessian:${webApp.url}/hello/</url>
    <interface>example.HelloService</interface>
  </web-service-client>

  <servlet servlet-name="service-frontend" 
           servlet-class="example.ServiceFrontendServlet" />
  <servlet-mapping url-pattern="/frontend/" servlet-name="service-frontend" />


</web-app>