<!--
   - web.xml configuration file for the Hessian addition example.
  -->
<web-app xmlns="http://caucho.com/ns/resin"
	 xmlns:example="urn:java:example">
  <!--
     - WebBeans singleton bean for the service.
    -->
  <example:HelloServiceImpl>
    <Named>vm</Named>
  </example:HelloServiceImpl>

  <!--
     - Hessian protocol service
    -->
  <servlet-mapping url-pattern="/hello/hessian/*"
                   servlet-class="example.HelloServiceImpl">
    <protocol uri="hessian"/>
  </servlet-mapping>

  <!--
     - Hessian protocol service
    -->
  <servlet-mapping url-pattern="/hello/burlap/*"
                   servlet-class="example.HelloServiceImpl">
    <protocol uri="burlap"/>
  </servlet-mapping>

  <!--
     - SOAP protocol service
  <servlet-mapping url-pattern="/hello/soap/*"
                   servlet-class="example.HelloServiceImpl">
    <protocol uri="cxf"/>
  </servlet-mapping>
    -->

  <!--
     - REST protocol service
  <servlet-mapping url-pattern="/hello/rest/*"
                   servlet-class="example.HelloServiceImpl">
    <protocol uri="rest"/>
  </servlet-mapping>
    -->

  <!--
     - Hessian client
    -->
  <remote-client interface="example.HelloService" name="hessian">
    <uri>hessian:url=${webApp.url}/hello/hessian/</uri>
  </remote-client>  

  <!--
     - Burlap client
    -->
  <remote-client interface="example.HelloService" name="burlap">
    <uri>burlap:url=${webApp.url}/hello/burlap/</uri>
  </remote-client>  
  
  <!--
     - SOAP client
  <web-service-client interface="example.HelloService" name="soap">
    <uri>cxf:url=${webApp.url}/hello/soap/</uri>
  </web-service-client>
    -->
  
  <!--
     - REST client
  <web-service-client interfce="example.HelloService" name="rest">
    <uri>rest:url=${webApp.url}/hello/rest/</uri>
  </web-service-client>
    -->
</web-app>
