users@glassfish.java.net

Is it possible to run a SQL statement each new JDBC connection?

From: <glassfish_at_javadesktop.org>
Date: Tue, 24 Nov 2009 10:46:00 PST

I wonder, if it is possible to run custom SQL statements, if the jdbc connection pool has opened a new connection.

For example working with MS SQL 2005 the two statements are interesting:
   SET TRANSACTION ISOLATION LEVEL SNAPSHOT
   SET LOCK_TIMEOUT timeout_period_in_milliseconds

Thank a lot
[Message sent by forum member 'hegalor' ]

http://forums.java.net/jive/thread.jspa?messageID=373190