Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. <GlobalNamingResources>
  2. <!-- Editable user database that can also be used by
  3. UserDatabaseRealm to authenticate users
  4. -->
  5. <Resource name="UserDatabase" auth="Container"
  6. type="org.apache.catalina.UserDatabase"
  7. description="User database that can be updated and saved"
  8. factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  9. pathname="conf/tomcat-users.xml" />
  10. <Resource name="jdbc/lsd" auth="Container"
  11. type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
  12. url="jdbc:postgresql://localhost:5433/lsd"
  13. username="postgres" password="root"
  14. maxActive="10" maxIdle="5" maxWait="-1"/>
  15. <Resource name="jdbc/lsd_slave" auth="Container"
  16. type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
  17. url="jdbc:postgresql://localhost:5433/lsd"
  18. username="postgres" password="root"
  19. maxActive="10" maxIdle="5" maxWait="-1"/>
  20. <Resource name="jdbc/lsd_validations" auth="Container"
  21. type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
  22. url="jdbc:postgresql://localhost:5433/lsd"
  23. username="postgres" password="root"
  24. maxActive="10" maxIdle="5" maxWait="-1"/>
  25. <Resource name="jdbc/lsd" auth="Container"
  26. type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
  27. url="jdbc:postgresql://127.0.0.1:5433/lsd"
  28. username="postgres" password="root"
  29. validationQuery="select 1" testOnBorrow="true" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" validationInterval="30000"
  30. maxActive="20" maxIdle="5" maxWait="-1"
  31. removeAbandoned="true" removeAbandonedTimeout="300"/>
  32. </GlobalNamingResources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement