rsanchez
2014-11-18 1c00a09ff5753e785b0dbf1467075be30bc37029
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<Context >
    <!-- maxActive: Maximum number of database connections in pool. Make sure you
         configure your mysqld max_connections large enough to handle
         all of your db connections. Set to -1 for no limit.
         -->
    <!-- maxIdle: Maximum number of idle database connections to retain in pool.
         Set to -1 for no limit.  See also the DBCP documentation on this
         and the minEvictableIdleTimeMillis configuration parameter.
         -->
    <!-- maxWait: Maximum time to wait for a database connection to become available
         in ms, in this example 10 seconds. An Exception is thrown if
         this timeout is exceeded.  Set to -1 to wait indefinitely.
         -->
    <!-- username and password: MySQL username and password for database connections  -->
    <!-- driverClassName: Class name for the old mm.mysql JDBC driver is
         org.gjt.mm.mysql.Driver - we recommend using Connector/J though.
         Class name for the official MySQL Connector/J driver is com.mysql.jdbc.Driver.
         -->
    <!-- url: The JDBC connection url for connecting to your MySQL database.
         -->
<!-- 
           <property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
           <property name="javax.persistence.jdbc.user" value="curis" />
           <property name="javax.persistence.jdbc.password" value="53curi5" />
           <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
           <property name="connection.provider_class" value="org.hibernate.connection.C3P0ConnectionProvider" />        
           <property name="hibernate.c3p0.acquire_increment" value="1" />
           <property name="hibernate.c3p0.idle_test_period" value="60" />
           <property name="hibernate.c3p0.min_size" value="1" />
           <property name="hibernate.c3p0.max_size" value="10" />
           <property name="hibernate.c3p0.max_statements" value="50" />
           <property name="hibernate.c3p0.timeout" value="0" />
           <property name="hibernate.c3p0.acquireRetryAttempts" value="1" />
           <property name="hibernate.c3p0.acquireRetryDelay" value="250" />
 -->
  <Resource name="jdbc/SeCurisDSOld" auth="Container" type="javax.sql.DataSource"
               maxActive="100" maxIdle="3" maxWait="5000"
               username="curis" password="cur151T 53curi5" driverClassName="org.h2.Driver"
               url="jdbc:h2:~/.SeCuris/db/securis"/>
  <Resource name="jdbc/SeCurisDS" auth="Container" type="javax.sql.DataSource"
               maxActive="100" maxIdle="3" maxWait="5000"
               username="curis" password="securis" driverClassName="com.mysql.jdbc.Driver"
               url="jdbc:mysql://localhost:3306/securis?autoReconnect=true"/>
</Context>