Advertisement
mauro2014

resources.xml and persistence.xml

Oct 24th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <resources>
  3. <Resource id="jdbc/provadacance" type="javax.sql.DataSource">#Thu Oct 23 14:00:00 CEST 2014
  4. jdbcDriver=org.apache.derby.jdbc.ClientDriver
  5. password=app
  6. userName=app
  7. jdbcUrl=jdbc\:derby\://localhost\:1527/sample
  8. jtaManaged=true
  9. </Resource>
  10. </resources>
  11. ---------------------------------
  12.  
  13. persistence_xml
  14.  
  15. ?xml version="1.0" encoding="UTF-8"?>
  16. <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  17. <persistence-unit name="ptrovacancPU" transaction-type="JTA">
  18. <jta-data-source>jdbc/provadacance</jta-data-source>
  19. <exclude-unlisted-classes>false</exclude-unlisted-classes>
  20. <properties/>
  21. </persistence-unit>
  22. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement