All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
local.cfg
. Note: the command line tools cannot use an externally configured pool, and always use the settings in local.cfg
to build their own pool.DSpace applications will specifically look for an object named jdbc/dspace
. The name is not configurable, but is specified in config/spring/api/core-hibernate.xml
if you must know. You must configure the name of the directory object provided to your web application context(s) to match this. See below for an example in Tomcat.
First, you must make the DBMS JDBC driver JAR for your database available to Tomcat. TBS. For example, the latest PostgreSQL JDBC driver can be downloaded from the PostgreSQL project website and placed in Tomcat's lib
directory. The exact location of this directory varies depending on your operating system and Tomcat version, but on Ubuntu 16.04 with Tomcat 7 the location would be /usr/share/tomcat7/lib
.
Then add Add a <Resource>
in Tomcat's server.xml
to define the pool. The pool name
here is global and can be anything you want:
Code Block | ||||
---|---|---|---|---|
| ||||
<GlobalNamingResources> ... <Resource name='jdbc/instance' description='Our DSpace DBMS connection pool' type='javax.sql.DataSource' auth='Container' username='USER' password='SECRET' driverClassName='org.postgresql.Driver' url='jdbc:postgresql://dbms.example.com:5432/dspace' initialSize='5' maxTotal='50' maxIdle='15' minIdle='5' maxWaitMillis='5000' /> ... </GlobalNamingResources> |
Add And configure a <ResourceLink> for that global resource in each Contextweb application context:
Code Block | ||
---|---|---|
| ||
<Context ... <ResourceLink name='jdbc/dspace' global='jdbc/instance' type='javax.sql.DataSource' /> ... </Context> |
Notice that the name
of given in the context's ResourceLink
matches the value of db.jndi
that DSpace automatically looks for, and the global
parameter in the ResourceLink
matches the name
of the global Resource
. See the JNDI Datasource HOW-TO for more information about this configuration.
Essentially installing on Windows is the same as installing on Unix so please refer back to the main Installation Instructions section.
...