tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Sabourdin <zouy...@yahoo.com>
Subject Re: [Tomcat-users] Re: MySQL, Tomcat, Communication Link Error
Date Fri, 01 Sep 2000 09:21:11 GMT
Where do you think I can find doc about "Database
pooling in java" ?
--- Matt Goss <mgoss@rtci.com> wrote:
> Bob,
> Database pooling is a great way to increase the
> speed of your code (at least by
> a factor of 10). I would just edit your database
> pooling code to check if the
> connection is null and create another if so....
> Matt Goss
> 
> Bob Tanner wrote:
> 
> > Quoting Kevin Sangalee (kevin@susa.net):
> > > Where do you get and release your connections?
> I've seen errors like that
> > > when database server daemons have been restarted
> for whatever reason,
> > > causing the tcp/ip socket connection to be
> broken. Perhaps mySQL has a
> > > configurable timeout on server processes (i.e.
> to avoid possibility of
> > > memory wind-ups etc).
> >
> > I removed the database pooling code, I am going it
> raw in the init().
> >
> >       Class.forName(driver).newInstance();
> >       Connection conn =
> DriverManager.getConnection(url);
> >       stmt = conn.createStatement();
> > --
> > Bob Tanner <tanner@real-time.com>       | Phone :
> (612)943-8700
> > http://www.mn-linux.org                 | Fax   :
> (612)943-8500
> > Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9
> 10 E5 35 85 39 D9
> > begin:vcard 
> n:Goss;Matt
> tel;fax:919-657-1501
> tel;work:919-657-1432
> x-mozilla-html:FALSE
> url:www.rtci.com
> org:RTCI;Custom Solutions
> adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US
> version:2.1
> email;internet:mgoss@rtci.com
> title:Web Developer
> fn:Matt
> end:vcard
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message