Last change
on this file since 147 was
147,
checked in by oschonef, 14 years ago
|
- move database configuration to container using JNDI
|
-
Property svn:eol-style set to
native
-
Property svn:mime-type set to
text/plain
|
File size:
1.1 KB
|
Line | |
---|
1 | CLARIN Virtual Collection Registry |
---|
2 | ---------------------------------- |
---|
3 | |
---|
4 | The connection to the database is configured using JNDI using |
---|
5 | the name "jdbc/VirtualCollectionStore". |
---|
6 | When using Apache Tomcat add the following to the Context of the Web-App |
---|
7 | (either modifying "server.xml" or by providing the appropriate context.xml, |
---|
8 | e.g. "$CATALINA_HOME/conf/Catalina/localhost/VirtualCollectionRegistry.xml"; |
---|
9 | if in doubt, check the Apache Tomcat documentation): |
---|
10 | |
---|
11 | <Resource name="jdbc/VirtualCollectionStore" auth="Container" |
---|
12 | type="javax.sql.DataSource" |
---|
13 | maxActive="8" maxIdle="4" maxWait="10000" |
---|
14 | removeAbandoned="true" |
---|
15 | defaultAutoCommit="false" |
---|
16 | driverClassName="com.mysql.jdbc.Driver" |
---|
17 | validationQuery="SELECT 1" |
---|
18 | username="$dbuser" |
---|
19 | password="$dbpass" |
---|
20 | url="jdbc:mysql://127.0.0.1:3306/$dbname" /> |
---|
21 | |
---|
22 | This will configure a DBCP data source for the virtual collection registry. |
---|
23 | Customize $dbuser, $dbpass and $dbname to match your local setiings. |
---|
24 | NOTE: currently only MySQL is supported. |
---|
Note: See
TracBrowser
for help on using the repository browser.