Updated lex-context-config.xml to include a Naming resource for ThdlUsers

This commit is contained in:
dubtraxis 2003-10-06 16:23:49 +00:00
parent c532303425
commit cb6096b20d

View file

@ -1,54 +1,102 @@
<Context path="/lex" docBase="/Users/travis/webapps/lex/build" debug="0" reloadable="true" crossContext="true"> <Context path="/lex" docBase="/Users/travis/webapps/lex/build" debug="0" reloadable="true" crossContext="true">
<Resource name="jdbc/lex-datasource" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/lex-datasource"> <Resource name="jdbc/lex-datasource" scope="Shareable" type="javax.sql.DataSource"/>
<parameter> <ResourceParams name="jdbc/lex-datasource">
<name>factory</name> <parameter>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value> <name>factory</name>
</parameter> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- DBCP database connection settings --> <!-- DBCP database connection settings -->
<parameter> <parameter>
<name>url</name> <name>url</name>
<value>jdbc:mysql://localhost/Lex</value> <value>jdbc:mysql://localhost/Lex</value>
</parameter> </parameter>
<parameter> <parameter>
<name>driverClassName</name> <name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value> <value>com.mysql.jdbc.Driver</value>
</parameter> </parameter>
<parameter> <parameter>
<name>username</name> <name>username</name>
<value>java</value> <value>username</value>
</parameter> </parameter>
<parameter> <parameter>
<name>password</name> <name>password</name>
<value>rkgwvnvrt</value> <value>password</value>
</parameter> </parameter>
<parameter> <parameter>
<name>useUnicode</name> <name>useUnicode</name>
<value>true</value> <value>true</value>
</parameter> </parameter>
<parameter> <parameter>
<name>characterEncoding</name> <name>characterEncoding</name>
<value>utf-8</value> <value>utf-8</value>
</parameter> </parameter>
<!-- DBCP connection pooling options --> <!-- DBCP connection pooling options -->
<parameter> <parameter>
<name>maxWait</name> <name>maxWait</name>
<value>5000</value> <value>5000</value>
</parameter> </parameter>
<parameter> <parameter>
<name>maxIdle</name> <name>maxIdle</name>
<value>2</value> <value>2</value>
</parameter> </parameter>
<parameter> <parameter>
<name>maxActive</name> <name>maxActive</name>
<value>4</value> <value>4</value>
</parameter> </parameter>
</ResourceParams> </ResourceParams>
<Resource name="jdbc/thdl-users-datasource" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/thdl-users-datasource">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- DBCP database connection settings -->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost/ThdlUsers</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>username</name>
<value>username</value>
</parameter>
<parameter>
<name>password</name>
<value>password</value>
</parameter>
<parameter>
<name>useUnicode</name>
<value>true</value>
</parameter>
<parameter>
<name>characterEncoding</name>
<value>utf-8</value>
</parameter>
<!-- DBCP connection pooling options -->
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
</ResourceParams>
<Valve className="org.apache.catalina.valves.AccessLogValve" <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs/access" prefix="lex_access_log." suffix=".txt" pattern="combined" resolveHosts="true"/>
directory="logs/access" prefix="lex_access_log." suffix=".txt"
pattern="combined" resolveHosts="true"/>
</Context> </Context>