Re: Self-Contained Web Applications

2010-07-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 7/20/2010 11:14 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Self-Contained Web Applications Well, having to include commons-dbcp is a bit of an implementation detail

Re: Self-Contained Web Applications

2010-07-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, (I mist have missed these replies... I'm resurrecting this thread). On 6/25/2010 5:44 PM, Caldarale, Charles R wrote: From: Jon Brisbin [mailto:jon.bris...@npcinternational.com] Subject: Re: Self-Contained Web Applications Wouldn't

Re: Self-Contained Web Applications

2010-07-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/25/2010 6:01 PM, Caldarale, Charles R wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: Self-Contained Web Applications We can define a DataSource inside a Context already, hook up a locally configured Realm, and it'll use

RE: Self-Contained Web Applications

2010-07-20 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Self-Contained Web Applications Well, having to include commons-dbcp is a bit of an implementation detail, here. I should be able to include only my own JDBC driver and have Tomcat figure out that commons-dbcp

RE: Self-Contained Web Applications

2010-07-20 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Self-Contained Web Applications 1. Just but mysql-connector-j.x.y.z.jar into WEB-INF/lib But still use container-provided connection pooling when the container classes are loaded by the common classloader

Re: Self-Contained Web Applications

2010-06-25 Thread Pid
On 25/06/2010 17:02, Christopher Schultz wrote: All, While reading another thread (What's going on ... ?), I started to think about how inconvenient it is to have to put your JDBC driver into the server's lib directory. As it stands, now, all webapps must share the same version of the same

Re: Self-Contained Web Applications

2010-06-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 6/25/2010 12:44 PM, Pid wrote: On 25/06/2010 17:02, Christopher Schultz wrote: All, While reading another thread (What's going on ... ?), I started to think about how inconvenient it is to have to put your JDBC driver into the server's

Re: Self-Contained Web Applications

2010-06-25 Thread Pid
On 25/06/2010 19:06, Christopher Schultz wrote: Pid, On 6/25/2010 12:44 PM, Pid wrote: On 25/06/2010 17:02, Christopher Schultz wrote: All, While reading another thread (What's going on ... ?), I started to think about how inconvenient it is to have to put your JDBC driver into the

Re: Self-Contained Web Applications

2010-06-25 Thread Jon Brisbin
On Jun 25, 2010, at 3:59 PM, Pid wrote: Which part of the container hierarchy would the DataSource be attached to? Wouldn't it make sense to scope it to the Context, since you'd be using the webapp's classloader? Jon Brisbin Portal Webmaster NPC International, Inc.

RE: Self-Contained Web Applications

2010-06-25 Thread Caldarale, Charles R
From: Jon Brisbin [mailto:jon.bris...@npcinternational.com] Subject: Re: Self-Contained Web Applications Wouldn't it make sense to scope it to the Context, since you'd be using the webapp's classloader? Correct. Note that the desired effect should be achievable by including commons-dbcp

Re: Self-Contained Web Applications

2010-06-25 Thread Pid
On 25/06/2010 22:29, Jon Brisbin wrote: On Jun 25, 2010, at 3:59 PM, Pid wrote: Which part of the container hierarchy would the DataSource be attached to? Wouldn't it make sense to scope it to the Context, since you'd be using the webapp's classloader? We can define a DataSource inside

RE: Self-Contained Web Applications

2010-06-25 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: Self-Contained Web Applications We can define a DataSource inside a Context already, hook up a locally configured Realm, and it'll use a driver from the web app ClassLoader, which makes the app completely self contained. I don't understand