Guest User

Untitled

a guest
Jul 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. [<WAR_HOME>/WEB-INF/web.xml]
  2. <web-app>
  3. <resource-ref>
  4. <description>My DataSource</description>
  5. <res-ref-name>jdbc/myds</res-ref-name>
  6. <res-type>javax.sql.DataSource</res-type>
  7. <res-auth>Container</res-auth>
  8. <res-sharing-scope>Shareable</res-sharing-scope>
  9. </resource-ref>
  10. </web-app>
  11.  
  12. [<WAR_HOME>/META-INF/context.xml]
  13. <Context path="/mywebapp">
  14. <ResourceLink name="jdbc/msDS" global="jdbc/myDS" type="javax.sql.DataSource" />
  15. </Context>
  16.  
  17. [<TOMCAT_HOME>/server.xml]
  18. <Server>
  19. <GlobalNamingResources>
  20. <Resource name="jdbc/myDS"
  21. auth="Container"
  22. url="…"
  23. user="…"
  24. password="…"
  25. type="javax.sql.DataSource"
  26. driverClassName="…"
  27. maxActive="10"
  28. maxIdle="5"/>
  29. </GlobalNamingResources>
  30. </Server>
Add Comment
Please, Sign In to add comment