Hi,

 I triedto follow the tutorial shown in the link below

http://java.sys-con.com/node/152270

 but I amstuck with the mysql location.

I haveinstalled mysql database engine in a linux server.

Thetutorial I am following on is started in windows Vista with Eclipse 3.4, 
it assumed we  installed mysql in the local system (windows ).

I havedownloaded its tutorial files in a zip file and saved them in windows 
vista.

The list1 file is also shown below:





xml version='1.0' encoding='utf-8'?>
<Context displayName="DBTest" docBase="C:/Program Files/Apache Software 
Foundation/Tomcat 5.0/webapps/DBTest" path="/DBTest" 
workDir="work\Catalina\localhost\DBTest">

  <Resource auth="Container" description="DB Connection" 
name="jdbc/TestDB" type="javax.sql.DataSource"/>
  <ResourceParams name="jdbc/TestDB">
    <parameter>
      <name>factory</name>
      <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
      <name>url</name>
      <value>jdbc:mysql://localhost/test?autoReconnect=true</value>
    </parameter>
    <parameter>
      <name>password</name>
      <value></value>
    </parameter>
    <parameter>
      <name>maxActive</name>
      <value>100</value>
    </parameter>
    <parameter>
      <name>maxWait</name>
      <value>5000</value>
    </parameter>
    <parameter>
      <name>driverClassName</name>
      <value>com.mysql.jdbc.Driver</value>
    </parameter>
    <parameter>
      <name>username</name>
      <value>ODBC</value>
    </parameter>
    <parameter>
      <name>maxIdle</name>
      <value>2</value>
    </parameter>
  </ResourceParams>

</Context>



where should I make change in this file in order to make this project look 
for db connection in my linux box?



Thanks



Reply via email to