Advertisement
Guest User

Untitled

a guest
Aug 4th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <Context>
  2. <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
  3. maxActive="100" maxIdle="30" maxWait="10000"
  4. username="javauser" password="javadude" driverClassName="com.mysql.jdbc.Driver"
  5. url="jdbc:mysql://localhost:3306/javatest"/>
  6. </Context>
  7.  
  8. <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
  9. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  11. http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
  12. version="2.4">
  13. <description>MySQL Test App</description>
  14. <resource-ref>
  15. <description>DB Connection</description>
  16. <res-ref-name>jdbc/TestDB</res-ref-name>
  17. <res-type>javax.sql.DataSource</res-type>
  18. <res-auth>Container</res-auth>
  19. </resource-ref>
  20. </web-app>
  21.  
  22. <persistence-unit name="TestUnit" transaction-type="JTA">
  23. <provider>org.hibernate.ejb.HibernatePersistence</provider>
  24. <jta-data-source>jdbc/TestDB</jta-data-source>
  25. <!-- Demais configurações pertinentes -->
  26. </persistence-unit>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement