Beruflich Dokumente
Kultur Dokumente
Common Utilities
DB Adapter
Author
Shotformats
Version
1.0
Date
29/11/2016
Page 1
Introduction
DB Adapter application is used to form connection pooling and execute queries with the
database of the following type using JDBC:
1.
2.
3.
4.
5.
6.
Oracle
Mysql
Db2
Db2-7
Mssql
Access
How to use
DB Adapter application should be used with the name dbadapter-v1.0.jar. Following are
the steps to be followed for using the jar file.
1. Create a property file named dbadapter.properties and put entries as given
below:
#[MYSQL]
#[Configurations for SDPWAP Portal]
SDPWAP=SDPWAP
SDPWAP_DBPORT=3306
SDPWAP_DBTYPE=mysql
SDPWAP_DBUSER=root
SDPWAP_DBPASS=root
SDPWAP_DBHOST=localhost
SDPWAP_DBMAXCONN=10
SDPWAP_DBNAME=test
SDPWAP_QUERYLOGPATH=<query log path>
SDPWAP_LOGINGMODEBIT=<refer step 2 to form LOGINGMODEBIT>
#[End of Configurations for SDPWAP Portal]
2. Following are the logging mode names and their values :
INFO=1
DEBUG=2
WARNING=3
ERROR=4
CRITICAL=5
AUDIT=6
QUERY=7
For example: to enable INFO and QUERY mode, the LOGINGMODEBIT will be
(21+27) =130
Page 2
Page 3