> From: Mighty Tornado [mailto:mighty.torn...@gmail.com] 
> Subject: Re: Tomcat Data sources and connection pools
> 
> Tomcat will read the context.xml file in the META-INF 
> directory and get the data source from there?

Yes.

> I also added a resource ref in my web.xml because that's what various
> tutorials suggest. After that is done, how do I obtain a connection?

Again, read the doc; examples are in there:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

> is it correct to make a DAO a singleton?

The answer to that depends on what DAO mechanism you're using, and how you 
intend to use it.  It's not really a Tomcat topic.

 - 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

Reply via email to