Guest User

Untitled

a guest
Mar 9th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <!-- =========================================================== -->
  2. <!-- MySQL Connector -->
  3. <!-- =========================================================== -->
  4. <Call name="addService">
  5. <Arg>
  6. <New class="org.mortbay.jetty.plus.JotmService">
  7. <Set name="Name">TransactionMgr</Set>
  8. <!-- documentation is wrong here-->
  9. <!-- <Call name="addPooledDataSource"> -->
  10. <Call name="addDataSource">
  11. <Arg>jdbc/MySqlDB</Arg>
  12. <!-- set up the datasource -->
  13. <Arg>
  14. <New
  15. class="org.enhydra.jdbc.standard.StandardXADataSource">
  16. <Set name="DriverName">
  17. com.mysql.jdbc.Driver
  18. </Set>
  19. <Set name="Url">
  20. jdbc:mysql://localhost:3306/test
  21. </Set>
  22. <Set name="User">test</Set>
  23. <Set name="Password">xxxx</Set>
  24. </New>
  25. </Arg>
  26. <!-- set up a pool for the
  27. datasource -->
  28. <Arg>
  29. <New
  30. class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">
  31. <Arg type="Integer">4</Arg>
  32. <!-- initial size of pool -->
  33. <Set name="MinSize">4</Set>
  34. <Set name="MaxSize">15</Set>
  35. </New>
  36. </Arg>
  37. </Call>
  38. </New>
  39. </Arg>
  40. </Call>
Add Comment
Please, Sign In to add comment