pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedQuestions on property values
3+ messages / 3 participants
[nested] [flat]
* Questions on property values
@ 2005-05-18 06:57 Carsten Marx <Carsten.Marx@uni-konstanz.de>
2005-05-18 10:22 ` Re: Questions on property values Craig Servin <cservin@cromagnon.com>
2005-05-18 13:33 ` Re: Questions on property values Oliver Jowett <oliver@opencloud.com>
0 siblings, 2 replies; 3+ messages in thread
From: Carsten Marx @ 2005-05-18 06:57 UTC (permalink / raw)
To: pgsql-jdbc
Hello,
I've some small questions.
We use the Postgres 8.0-311 JDBC 3 driver in a appülication to
connect to a Postgres-DB-Server (Version(8.0)). The Target JDK is 1.4.2.
We need in our case a reliable connection. In other words, if the
connection is down, the JDBC driver should try to reconnect certain
times without throwing exceptions.
I looked via the DriverPropertyInfo[] method to all the available
properties, but there seems to be no options like autoReconnect and
maxReconnects as in the MySQL jbdc driver.
Am i blind? Or is there another way to do this?
Best Regards
Carsten Marx
--
University of Konstanz
tel. 07531-88-2861
room: F401
mail: Carsten.Marx@uni-konstanz.de
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Questions on property values
2005-05-18 06:57 Questions on property values Carsten Marx <Carsten.Marx@uni-konstanz.de>
@ 2005-05-18 10:22 ` Craig Servin <cservin@cromagnon.com>
1 sibling, 0 replies; 3+ messages in thread
From: Craig Servin @ 2005-05-18 10:22 UTC (permalink / raw)
To: pgsql-jdbc
When I have needed to do this I have used a dynamic proxy, using
java.lang.reflect.Proxy, to extend Connection, Statement, and ResultSet.
This does not solve the problem at the driver level, but it does allow you a
lot of control to decide when and how often you re-try a query and when you
need to re-open the connection.
You can also make it very database independent.
It does however incur some extra overhead.
Craig
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Questions on property values
2005-05-18 06:57 Questions on property values Carsten Marx <Carsten.Marx@uni-konstanz.de>
@ 2005-05-18 13:33 ` Oliver Jowett <oliver@opencloud.com>
1 sibling, 0 replies; 3+ messages in thread
From: Oliver Jowett @ 2005-05-18 13:33 UTC (permalink / raw)
To: Carsten Marx <Carsten.Marx@uni-konstanz.de>; +Cc: pgsql-jdbc
Carsten Marx wrote:
> We need in our case a reliable connection. In other words, if the
> connection is down, the JDBC driver should try to reconnect certain
> times without throwing exceptions.
The PostgreSQL driver doesn't provide this functionality. You could
achieve something similar by wrapping the driver, perhaps.. but doesn't
this belong in application logic?
-O
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-05-18 13:33 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-05-18 06:57 Questions on property values Carsten Marx <Carsten.Marx@uni-konstanz.de>
2005-05-18 10:22 ` Craig Servin <cservin@cromagnon.com>
2005-05-18 13:33 ` Oliver Jowett <oliver@opencloud.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox