Hi, I am using Tomcat 6.0. In Context.xml file I found JDBC resource configuration as below.
<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"/> It has Auth attribute which can be either "Container" or "Application". When it is set to "Container" then we need to give DB user name and password in context.xml file and it will be used by tomcat to connect DB. I don't want to use tomcat to setup connection rather want my application to setup connection with DB. As per Tomcat documentation for this I need to use Auth="Application", I am doing this and but then my application is not able to setup connection with DB. So I want to know if there is more explanation around it's usage. Thanks, Umesh -----Original Message----- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, June 08, 2011 10:41 PM To: Tomcat Users List Subject: RE: Auth in Context.xml > From: Umesh Bhatt [mailto:umesh_bh...@mindtree.com] > Subject: Auth in Context.xml > In Context.xml No such file is recognized by Tomcat. Tomcat does look at files named context.xml (case matters - even on Windows). > I have set Auth="Application" There is no such attribute for the <Context> element. Perhaps you should show us what you actually did, not describe what you think you did. Also include pertinent information such as the Tomcat version, the JVM level you're running on, and the platform you're using. > and want to connect with DataSource programatically. What exactly do you mean by that? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org ________________________________ http://www.mindtree.com/email/disclaimer.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org