Advertisement
kvitso

jetty-env.xml

Oct 27th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.70 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
  3. <Configure id="h2" class="org.eclipse.jetty.webapp.WebAppContext">
  4.     <!-- H2 DataSource -->
  5.     <New class="org.eclipse.jetty.plus.jndi.Resource">
  6.         <Arg>
  7.             <Ref id="h2" />
  8.         </Arg>
  9.         <Arg>jdbc/db</Arg>
  10.         <Arg>
  11.             <!-- H2 DataSource -->
  12.             <New class="org.apache.commons.dbcp.BasicDataSource">
  13.                 <Set name="url">jdbc:h2:target/tmp/db;AUTOCOMMIT=ON;AUTO_SERVER=TRUE;MODE=MYSQL;USER=dbuser;INIT=RUNSCRIPT FROM 'src/main/fixtures/h2-DDL.sql'</Set>
  14.             </New>
  15.         </Arg>
  16.     </New>
  17. </Configure>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement