[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[wtp-dev] eclipse WTP WST automatic rebuild project context xml file resource param
|
Hi, I am new in WST.
I used to use the myproject.xml file to create a javax.sql.Datasource
Resource. This was created in
jakarta-tomcat-5.0.28/conf/Catalina/localhost/myproject.xml :
<?xml version='1.0' encoding='utf-8'?>
<Context path="/myproject" reloadable="true" docBase="Work
spaces/Default/myproject/web" workDir="Workspaces/Default/
myproject/work" >
<Logger className="org.apache.catalina.logger.SystemOutLogger"
verbosity
="4" timestamp="true"/>
<Resource name="jdbc/myproject" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/myproject">
<parameter>
<name>validationQuery</name>
<value>SELECT CURRENT_TIMESTAMP;</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>15000</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>org.postgresql.Driver</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
</ResourceParams>
</Context>
But, now Eclipse rebuild this file automaticly everytime i restart
tomcat, without th <Resource> definition.
There is another way to create the <Resource> or no re-build the
myproject.xml file ?
Thanks,
--
Jose-Andres Alfaro
anexo 1762