Wie konfiguriere ich bei einem TomEE Server und PostgreSQL die tomee.xml Datei richtig?
Hier die Demokonfiguration:
<?xml version="1.0" encoding="UTF-8"?> <tomee> <!-- see http://tomee.apache.org/containers-and-resources.html --> <!-- activate next line to be able to deploy applications in apps --> <!-- <Deployments dir="apps" /> --> <Resource id="NAME" type="DataSource"> JdbcDriver org.postgresql.Driver JdbcUrl jdbc:postgresql://URL UserName UserName Password Password JtaManaged true TestWhileIdle true InitialSize 5 </Resource> </tomee>
Ihr müsst nur noch folgende Felder mit euren individuellen Daten ausfüllen:
URL, UserName und Password
Viel Spaß beim Entwickeln.