1 | CLARIN Virtual Collection Registry |
---|
2 | ---------------------------------- |
---|
3 | |
---|
4 | The connection to the database is configured using JNDI using the |
---|
5 | name "jdbc/VirtualCollectionStore". |
---|
6 | When using Apache Tomcat add the following to the context configuration |
---|
7 | of the web application (by either modifying "server.xml" or providing an |
---|
8 | appropiate context configuration, e.g. like |
---|
9 | "$CATALINA_HOME/conf/Catalina/localhost/VirtualCollectionRegistry.xml"; |
---|
10 | if in doubt, please check the Apache Tomcat documentation): |
---|
11 | |
---|
12 | <Resource name="jdbc/VirtualCollectionStore" auth="Container" |
---|
13 | type="javax.sql.DataSource" |
---|
14 | maxActive="8" maxIdle="4" maxWait="10000" |
---|
15 | removeAbandoned="true" |
---|
16 | defaultAutoCommit="false" |
---|
17 | driverClassName="com.mysql.jdbc.Driver" |
---|
18 | validationQuery="SELECT 1" |
---|
19 | username="$dbuser" |
---|
20 | password="$dbpass" |
---|
21 | url="jdbc:mysql://127.0.0.1:3306/$dbname" /> |
---|
22 | |
---|
23 | This will configure a DBCP data source for the virtual collection registry. |
---|
24 | Customize $dbuser, $dbpass and $dbname to match your local settings. |
---|
25 | NOTE: currently only MySQL is supported. |
---|
26 | |
---|
27 | Furthermore, you will need to set the base URI for virtual collection |
---|
28 | registry (customize value as needed): |
---|
29 | <Parameter name="pid_provider.base_uri" |
---|
30 | value="http://127.0.0.1:8080/VirtualCollectionRegistry" |
---|
31 | override="false"/> |
---|