Hi,
I don't' know whether specifying db.properties works or not, but I
configured a datasource for mysql as follows:
1. Shutdown tomcat.
2. Enter followin in TOMCAT_HOME/conf/server.xml
(If you have an entry in server.xml for this update it as below)
Resource
name=jdbc/MyDB
Hi Scott,
I had also this problem some time back. You need to create a file named
context.xml in WEB-APP/META-INF directory. The resource needs to be
defined her as follows
?xml version=1.0 encoding=UTF-8?
Context
Resource
name=jdbc/BuilderDB
type=
password=admin
factory=com.ibm.db2j.jdbc.DB2jConnectionPoolDataSource
maxIdle=4 testOnBorrow=true validationQuery=select 1
username=user
url=jdbc:db2j:E:/apache-tomcat-5.5.17/webapps/datasourcedemo/SampleDB
timeBetweenEvictionRunsMillis=3 maxActive=8/ /Context
Regards,
Jitendra Kharche
factory=com.ibm.db2j.jdbc.DB2jConnectionPoolDataSource
maxIdle=4 testOnBorrow=true validationQuery=select 1
username=user
url=jdbc:db2j:E:/apache-tomcat-5.5.17/webapps/datasourcedemo/SampleDB
timeBetweenEvictionRunsMillis=3 maxActive=8/ /Context
Regards,
Jitendra Kharche
Hi Dilan,
Have you got all the details about my problem.
Regards,
Jitendra Kharche
-Original Message-
From: Jitendra Kharche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 4:09 PM
To: Tomcat Users List
Subject: RE: Using Datasource for cloudscape
Hi Dilan,
Thanks
Hi,
Can anybody help me to get a working copy of a simple database
application (using DataSource) in Tomcat 5.5?
Desperately looking for your help.
Regards,
Jitendra Kharche
-
To start a new topic, e-mail: users
validationQuery=select 1
username=user
url=jdbc:db2j:E:/apache-tomcat-5.5.17/webapps/datasourcedemo/SampleDB
timeBetweenEvictionRunsMillis=3 maxActive=8/
/Context
Regards,
Jitendra Kharche
-
To start a new topic, e-mail: users
or resources.
Please ask any additional info required.
Regards,
Jitendra Kharche
Geometric Software Solutions Co. Ltd.
Work: +91-20-2290 6351
This e-mail communication and any attachments are privileged and
confidential