tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Yu <>
Subject RE: Database Connectivity, JDBC2 and Tomcat
Date Fri, 28 Jul 2000 00:07:21 GMT
It actually works! I have to admit that the application I'm working on is
not the regular type application which does not require much authentication.
One of the design of my app is to keep track of which database user is
logged on and the app will not have such a huge number of client request as
regular web app will.

> -----Original Message-----
> From:	David Brunkow []
> Sent:	Thursday, July 27, 2000 7:38 PM
> To:	''
> Subject:	RE: Database Connectivity, JDBC2 and Tomcat
> The problem here is using tomcat and not having access to enterprise
> beans.
> He's talking about saving the db connection in the user/servlet session,
> which I don't quite agree with. Having a db connection per user is "not
> optimal", although I appreciate the response. My understanding was that
> JDBC2 required pooling under the covers which allows me as a user in the
> servlet to get a connection much faster than in the JDBC1.X world.  Two of
> my questions are, "are people using that" and "does it actually work".
> This
> is a big deal with tomcat since I can't use an enterprise bean.  I have to
> use java beans(simple classes/non enterprise beans) and inside those
> classes
> I want to abstract data tables.  Anybody else facing such issues?
> Correct me if I'm wrong or mistaken on any of this.
> dvb
> -----Original Message-----
> From: John Daniels []
> Sent: Thursday, July 27, 2000 4:26 PM
> To:
> Subject: RE: Database Connectivity, JDBC2 and Tomcat
> By "session object," do you mean session beans?
> >You can use the session object to cache the JDBC connection throughout
> your
> >JSPs and Servlets. This way you are connected once and can reuse the
> >connection. Also you can close the connection on session expiration.
> Well,
> >about the JDBC pooling, that is totally depends on the implementation of 
> >the
> >JDBC driver.
> >
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at

View raw message