#
# Configuration of the driver manager
#################################################################################
driver.vfs=db
driver.project=db
driver.user=db
driver.subscription=db
driver.history=db

#
# Database setup (used only in tests) 
#################################################################################

db.pool.setup.dbName=ocjutest
db.pool.setup.jdbcDriver=com.ibm.as400.access.AS400JDBCDriver
db.pool.setup.jdbcUrl=jdbc:as400://10.22.1.200;libraries='OPENCMS'
db.pool.setup.jdbcUrl.params=
db.pool.setup.user=webintra
db.pool.setup.password=intra45

#
# Declaration of database pools
#################################################################################
db.pools=default

#
# Configuration of the default database pool
#################################################################################

# name of the database (used only in tests)
db.pool.default.dbName=ocjutest

# name of the JDBC driver
db.pool.default.jdbcDriver=com.ibm.as400.access.AS400JDBCDriver

# URL of the JDBC driver
db.pool.default.jdbcUrl=jdbc:as400://10.22.1.200;libraries='OPENCMS'

# optional parameters for the URL of the JDBC driver
db.pool.default.jdbcUrl.params=

# user name to connect to the database
db.pool.default.user=webintra

# password to connect to the database
db.pool.default.password=intra45

# the URL to make the JDBC DriverManager return connections from the DBCP pool
db.pool.default.poolUrl=opencms:default

# the maximum number of objects that can be borrowed from the pool
db.pool.default.maxActive=25

# the maximum amount of time before throwing an exception when the pool is exhausted
db.pool.default.maxWait=2000

# the maximum number of objects that can sit idled in the pool
db.pool.default.maxIdle=10

# connections will be validated by evictor thread
db.pool.default.testWhileIdle=true

# number of milliseconds to sleep between runs of the evictor thread
# -1 means no idle connection evictor thread will be run
db.pool.default.timeBetweenEvictionRuns=3600000

# number of connections tested in a run of the evictor thread
db.pool.default.numTestsPerEvictionRun=3

# minimum amount of time in milliseconds a connection may be idle in the pool before it is eligable for eviction 
db.pool.default.minEvictableIdleTime=1800000

# the query to validate connections
db.pool.default.testQuery=SELECT STRUCTURE_ID FROM CMS_OFFLINE_STRUCTURE WHERE RESOURCE_PATH = '/'

# action to take when the pool is exhausted {grow|block|fail}
db.pool.default.whenExhaustedAction=block

# connections will be validated before they are borrowed from the pool
db.pool.default.testOnBorrow=false

#
# Configuration for statement pooling
#################################################################################
db.statements.default.pooling=true
db.statements.default.maxActive=200
db.statements.default.maxWait=2000
db.statements.default.maxIdle=100
db.statements.default.whenExhaustedAction=block

#
# Configuration of the database driver manager
#################################################################################
db.name=as400

db.vfs.driver=org.opencms.db.as400.CmsVfsDriver
db.vfs.pool=opencms:default
db.vfs.sqlmanager=org.opencms.db.as400.CmsSqlManager

db.project.driver=org.opencms.db.as400.CmsProjectDriver
db.project.pool=opencms:default
db.project.sqlmanager=org.opencms.db.as400.CmsSqlManager

db.user.driver=org.opencms.db.as400.CmsUserDriver
db.user.pool=opencms:default
db.user.sqlmanager=org.opencms.db.as400.CmsSqlManager

db.subscription.driver=org.opencms.db.as400.CmsSubscriptionDriver
db.subscription.pool=opencms:default
db.subscription.sqlmanager=org.opencms.db.as400.CmsSqlManager

db.history.driver=org.opencms.db.as400.CmsHistoryDriver
db.history.pool=opencms:default
db.history.sqlmanager=org.opencms.db.as400.CmsSqlManager

db.cos.pool=opencms:default

#
# Ethernet address used for UUID generation
# Server name used for various messages
#################################################################################
server.ethernet.address=4b:60:ca:37:04:99
server.name=OpenCmsServer

#
# Enable/Disable OpenCms Setup Wizard
# The wizard sets the flag to false after the setup.
# To use the wizard again, reset it manually to true.
# By setting no value, wizard can always be used.
#################################################################################
wizard.enabled=false

