Re: WARNING: ROLLBACK: no transaction in progress - Mailing list pgsql-jdbc

From Paul Thomas
Subject Re: WARNING: ROLLBACK: no transaction in progress
Date
Msg-id 20030610131835.A22583@bacon
Whole thread Raw
In response to WARNING: ROLLBACK: no transaction in progress  ("Bjorn T Johansen" <btj@havleik.no>)
List pgsql-jdbc
On 09/06/2003 15:33 Dmitry Tkach wrote:

> Frankly, I could never understand why people are so inclined to use all
> those third party connection pooling mechanisms - they have all kinds of
> problems - they 'swallow' native sql exceptions, they do funny stuff
> with transactions etc, etc... The main problem being, they are 'black
> boxes' - you never know what exactly happens to the connection
> before/after you get your hands on it.... :-(

I'm using Tomcat's connection pooling and I don't any of the problems you
describe. It doesn't swallow SQLExceptions and it doesn't do anything
(funny or otherwise) with transactions. I don't regard it as a black box
either. The source is freely available and I can see exactly what its
doing to my connection. And if don't like what it does, I am, of course,
free to modify it. It seems more like a white box to me :)

> This seems way too much price to pay for the benefit of not having to
> implement the pool on your own (which is, more or less, just having a
> Vector of  active connections somewhere) ...

Well, some years ago, I did have to write my own connection pooling and I
can tell you that there's quite a bit more to it than just bunging some
connections in a Vector.

regards

--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants         |
http://www.thomas-micro-systems-ltd.co.uk   |
+------------------------------+---------------------------------------------+


pgsql-jdbc by date:

Previous
From: "Carlos Oliva"
Date:
Subject: Re: Retrieving the server time and date -- java??
Next
From: "rcastagnoli@katamail.com"
Date:
Subject: Authentication problems