WEB-INF/resin-web.xml

<web-app xmlns="http://caucho.com/ns/resin">

  <bean var="movie3" type="example.Movie">
    <init>
      <title>The Maltese Falcon</title>
      <star>Humphrey Bogart</star>
      <star>Mary Astor</star>
      <star>Peter Lorre</star>
      <star>Sydney Greenstreet</star>
    </init>
  </bean>
  
  <bean jndi-name="beans/theater" type="example.Theater">
    <init>
      <name>Balboa Theater</name>
      
      <movie>
        <title>Plan 9 from Outer Space</title>
      </movie>
      
      <movie>
        <title>Snakes on a Plane</title>
	<star>Samuel L Jackson</star>
      </movie>
      
      <movie>${movie3}</movie>
    </init>
  </bean>
      
  <servlet-mapping url-pattern="/test"
                   servlet-class="example.TestServlet"/>
</web-app>