Skip site navigation (1) Skip section navigation (2)

Re: [SPAM] - Re: [SPAM] - Re: JDBC HighLoad - Found word(s)

From: Stéphane RIFF <stephane(dot)riff(at)cerene(dot)fr>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [SPAM] - Re: [SPAM] - Re: JDBC HighLoad - Found word(s)
Date: 2005-02-04 13:16:50
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
I thought that the m_conn.close() released the connection to the pool 
doesn't it ?
If i close the connection at the end of the loop byt a SQLoader.close() 
this will
make one connection for each thread. I want each thread ask a connection 
to the pool
and released it after each update.

Thanks for your time

Kris Jurka wrote:

>On Fri, 4 Feb 2005, [ISO-8859-1] St�phane RIFF wrote:
>>I implement like you said in the last post but now i get some errors 
>>like this :
>>2005-02-04 09:03:26,234 : [WARN] SQLoader - java.sql.SQLException: 
>>org.apache.commons.dbcp.DelegatingPreparedStatement is closed.
>>I attach the two class i you want to see
>Your main loop is written:
>SQLoader sl = new SQLoader();
>for(int i=0;i<100;i++) {
>    sl.saveTrame( ... );
>but the end of the saveTrame method you have:
>finally {
>    try {
>        m_conn.commit();
>        m_conn.close();
>This closes the connection on the first iteration of the loop.  I'd 
>suggest something like adding SQLoader.close() which gets called at the 
>end of the for loop.
>Kris Jurka
>---------------------------(end of broadcast)---------------------------
>TIP 8: explain analyze is your friend

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 03/02/2005

In response to


pgsql-jdbc by date

Next:From: Dave CramerDate: 2005-02-04 13:36:17
Subject: Re: [SPAM] - Re: [SPAM] - Re: JDBC HighLoad - Found word(s)
Previous:From: Rainer FreyDate: 2005-02-04 10:54:56
Subject: Re: BUG #1459: Connection hangs when other connection is not

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group