Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- =========================================================== -->
- <!-- MySQL Connector -->
- <!-- =========================================================== -->
- <Call name="addService">
- <Arg>
- <New class="org.mortbay.jetty.plus.JotmService">
- <Set name="Name">TransactionMgr</Set>
- <!-- documentation is wrong here-->
- <!-- <Call name="addPooledDataSource"> -->
- <Call name="addDataSource">
- <Arg>jdbc/MySqlDB</Arg>
- <!-- set up the datasource -->
- <Arg>
- <New
- class="org.enhydra.jdbc.standard.StandardXADataSource">
- <Set name="DriverName">
- com.mysql.jdbc.Driver
- </Set>
- <Set name="Url">
- jdbc:mysql://localhost:3306/test
- </Set>
- <Set name="User">test</Set>
- <Set name="Password">xxxx</Set>
- </New>
- </Arg>
- <!-- set up a pool for the
- datasource -->
- <Arg>
- <New
- class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">
- <Arg type="Integer">4</Arg>
- <!-- initial size of pool -->
- <Set name="MinSize">4</Set>
- <Set name="MaxSize">15</Set>
- </New>
- </Arg>
- </Call>
- </New>
- </Arg>
- </Call>
Add Comment
Please, Sign In to add comment