Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <GlobalNamingResources>
- <!-- Editable user database that can also be used by
- UserDatabaseRealm to authenticate users
- -->
- <Resource name="UserDatabase" auth="Container"
- type="org.apache.catalina.UserDatabase"
- description="User database that can be updated and saved"
- factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
- pathname="conf/tomcat-users.xml" />
- <Resource name="jdbc/lsd" auth="Container"
- type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
- url="jdbc:postgresql://localhost:5433/lsd"
- username="postgres" password="root"
- maxActive="10" maxIdle="5" maxWait="-1"/>
- <Resource name="jdbc/lsd_slave" auth="Container"
- type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
- url="jdbc:postgresql://localhost:5433/lsd"
- username="postgres" password="root"
- maxActive="10" maxIdle="5" maxWait="-1"/>
- <Resource name="jdbc/lsd_validations" auth="Container"
- type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
- url="jdbc:postgresql://localhost:5433/lsd"
- username="postgres" password="root"
- maxActive="10" maxIdle="5" maxWait="-1"/>
- <Resource name="jdbc/lsd" auth="Container"
- type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
- url="jdbc:postgresql://127.0.0.1:5433/lsd"
- username="postgres" password="root"
- validationQuery="select 1" testOnBorrow="true" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" validationInterval="30000"
- maxActive="20" maxIdle="5" maxWait="-1"
- removeAbandoned="true" removeAbandonedTimeout="300"/>
- </GlobalNamingResources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement