tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rashmi Rubdi" <rashmi....@gmail.com>
Subject Re: JNDI Datasource Problem
Date Mon, 02 Apr 2007 18:36:31 GMT
Is the Context associated with a Host?

I tried and example as shown here:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
and it works fine. I think the same instructions work for Tomcat 5.5.x
as well.

My server.xml

      <Host name="connectionpooling" appBase="webapps/ConnectionPooling">
      	<Context path="" docBase="C:/dev/projects/ConnectionPooling"
reloadable="true" debug="true">
		<Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
			maxActive="100" maxIdle="30" maxWait="10000"
			username="javauser" password="javadude"
driverClassName="com.mysql.jdbc.Driver"
			url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>	
	</Context>
      </Host>

-Rashmi

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message