Re: Need help understanding DB connection versus servlet request life cycle

2015-08-18 Thread Christopher Schultz
m: osagie uwaifo >>> [mailto:osagieuwa...@gmail.com] Sent: Friday, August 14, 2015 >>> 10:49 AM To: Tomcat Users List Subject: Re: Need help >>> understanding DB connection versus servlet request life cycle >>> >>>> Chris, >>>> >>&g

RE: Need help understanding DB connection versus servlet request life cycle

2015-08-18 Thread Cris Berneburg - US
Users List Subject: Re: Need help understanding DB connection versus servlet request life cycle > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Cris, > > On 8/14/15 1:36 PM, Cris Berneburg - US wrote: > > -Original Message- From: osagie uwaifo > >

Re: Need help understanding DB connection versus servlet request life cycle

2015-08-15 Thread Christopher Schultz
anding DB > connection versus servlet request life cycle > >> Chris, >> >> Why don't you allow tomcat manage the connection for you? >> >> http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html >> >> It is a lot easier that way. Do you need examples?

RE: Need help understanding DB connection versus servlet request life cycle

2015-08-14 Thread Cris Berneburg - US
Osagie -Original Message- From: osagie uwaifo [mailto:osagieuwa...@gmail.com] Sent: Friday, August 14, 2015 10:49 AM To: Tomcat Users List Subject: Re: Need help understanding DB connection versus servlet request life cycle > Chris, > >Why don't you allow tom

Re: Need help understanding DB connection versus servlet request life cycle

2015-08-14 Thread osagie uwaifo
Chris, Why don't you allow tomcat manage the connection for you? http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html It is a lot easier that way. Do you need examples? On Fri, Aug 14, 2015 at 9:12 AM, Cris Berneburg - US wrote: > BACKGROUND: I've been doing Java servlet coding for abo

Need help understanding DB connection versus servlet request life cycle

2015-08-14 Thread Cris Berneburg - US
BACKGROUND: I've been doing Java servlet coding for about 2 years and need help understanding something. I work on a legacy JSP and servlets web application project using Tomcat. Previously all the SQL was embedded right into the Java and JSP code. I added the myBatis framework and moved all