<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">

<Configure id='wac' class="org.eclipse.jetty.webapp.WebAppContext">


 <!-- Add an override for a global EnvEntry                           -->
  <New id="maxAmount"  class="org.eclipse.jetty.plus.jndi.EnvEntry">
    <Arg><Ref refid='wac'/></Arg>
    <Arg>maxAmount</Arg>
    <Arg type="java.lang.Double">55.0</Arg>
    <Arg type="boolean">true</Arg>
  </New>






  <!-- =============================================================== -->
  <!-- Configuring Transactions and XA Datasources                     -->
  <!-- =============================================================== -->


  <New id="tx" class="org.eclipse.jetty.plus.jndi.Transaction">
   <Arg>
     <New class="com.acme.MockUserTransaction"/>
   </Arg>
  </New>



  <New id="mydatasource" class="org.eclipse.jetty.plus.jndi.Resource">
    <Arg><Ref refid='wac'/></Arg>
    <Arg>jdbc/mydatasource</Arg>
    <Arg>
        <New class="com.acme.MockDataSource"/>
    </Arg>
   </New>


</Configure>

