jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller" <thomas.tom.muel...@gmail.com>
Subject Re: Multiple connections (Was: Jackrabbit, the database)
Date Tue, 21 Aug 2007 15:05:16 GMT
>             PreparedStatement ps = connection.prepareStatement(...);
>             try {
>                 // use the prepared statement
>             } finally {
>                 ps.close();
>             }

> Any reasonable connection pool will pool also the prepared statements,

I would not be so sure. Maybe if you don't close the prepared
statement (not sure about the disadvantages of that). In any case it
needs to be tested.

Thomas

Mime
View raw message