Files
Babydatenbank/web/META-INF/context.xml
2020-05-26 13:26:50 +02:00

56 lines
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Context reloadable="true">
<JarScanner scanClassPath="false" />
<!--
To define the access to your database uncomment the corresponding one
from the below configurations. If you don't find the yours, look in
internet for the JDBC URL and driver class for your database and define
your own Resource entry.
You have to adapt the URL to match your server, and maybe the port.
You have to define the correct user name and password for your database.
Moreover, you have to copy the JDBC driver (a jar file) corresponding to
your database, to the lib folder of your Tomcat, or if you're in development
add the jar to your project Java Build Path using Eclipse:
Right button on your project > Properties > Java Build Path > Libraries
-->
<!-- HSQLDB
<Resource name="jdbc/BabydatenbankDS" auth="Container" type="javax.sql.DataSource"
maxTotal="20" maxIdle="5" maxWaitMillis="10000"
username="sa" password="" driverClassName="org.hsqldb.jdbcDriver"
url="jdbc:hsqldb:hsql://localhost:1666"/>
-->
<!-- MySQL -->
<Resource name="jdbc/BabydatenbankDS" auth="Container" type="javax.sql.DataSource"
maxTotal="20" maxIdle="5" maxWaitMillis="10000"
username="babydatenbank_usr" password="mJq63*n1" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/admin_babydatenbank"/>
<!-- PostgreSQL
<Resource name="jdbc/BabydatenbankDS" auth="Container" type="javax.sql.DataSource"
maxTotal="20" maxIdle="5" maxWaitMillis="10000"
username="postgres" password="" driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost/"/>
-->
<!-- Oracle
<Resource name="jdbc/BabydatenbankDS" auth="Container" type="javax.sql.DataSource"
maxTotal="20" maxIdle="5" maxWaitMillis="10000"
username="user" password="" driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@localhost:1521:XE"/>
-->
<!-- AS/400
<Resource name="jdbc/BabydatenbankDS" auth="Container" type="javax.sql.DataSource"
maxTotal="20" maxIdle="5" maxWaitMillis="10000"
username="user" password="" driverClassName="org.hibernate.dialect.DB2400Dialect"
url="jdbc:as400:localhost"/>
-->
</Context>