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-name="hello-hessian"
    	           jndi-name="service/HelloService"  
                   servlet-class="example.HelloServiceImpl">
    <protocol type="hessian"/>

    <init>
      <hello>hola mundo</hello>
    </init>
  </servlet-mapping>

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