Although i'm on your side in this discussion, I have 
doubts about one statements: (See below)

> -----Original Message-----
> From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
> Sent: Thursday, October 31, 2002 6:48 PM
> To: Tomcat Users List
> Subject: RE: JDBC / ThreadLocal pattern.
> 
> You get exactly the same benefit (not having to pass the connection
> around) if you use a data source accessed via JNDI.  All the 
> rest of the ThreadLocal manipulation is needless complexity.
> 

I think that the idea was to pass around the connection that 
was obtained at the start of the request to reuse objects 
that are bound to that connection (like a ResultSet). How 
would you reclaim exactly that connection ?

(Not that I think, that this is a good idea, it's just
 technical curiosity)

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to