From chambers@imageworks.com Fri Feb 1 16:52:09 2008 Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id B8EDA2E004F for ; Fri, 1 Feb 2008 12:52:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 44486-02 for ; Fri, 1 Feb 2008 12:52:03 -0400 (AST) Received: from outbound7-sin-R.bigfish.com (outbound-sin.frontbridge.com [207.46.51.80]) by postgresql.org (Postfix) with ESMTP id 483B92E01A2 for ; Fri, 1 Feb 2008 12:52:02 -0400 (AST) Received: from outbound7-sin.bigfish.com (localhost.localdomain [127.0.0.1]) by outbound7-sin-R.bigfish.com (Postfix) with ESMTP id 223B91278D5B for ; Fri, 1 Feb 2008 16:52:00 +0000 (UTC) Received: from mail133-sin-R.bigfish.com (unknown [10.3.40.3]) by outbound7-sin.bigfish.com (Postfix) with ESMTP id EFAF0D48059 for ; Fri, 1 Feb 2008 16:51:59 +0000 (UTC) Received: from mail133-sin (localhost.localdomain [127.0.0.1]) by mail133-sin-R.bigfish.com (Postfix) with ESMTP id E0588FB8107 for ; Fri, 1 Feb 2008 16:51:59 +0000 (UTC) X-BigFish: V X-MS-Exchange-Organization-Antispam-Report: OrigIP: 74.222.153.32; Service: EHS Received: by mail133-sin (MessageSwitch) id 1201884719652212_32722; Fri, 1 Feb 2008 16:51:59 +0000 (UCT) Received: from owa2.spimageworks.com (unknown [74.222.153.32]) by mail133-sin.bigfish.com (Postfix) with ESMTP id 30B58E38046 for ; Fri, 1 Feb 2008 16:51:58 +0000 (UTC) Received: from alpha.spimageworks.com ([172.30.104.2]) by owa2.spimageworks.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 1 Feb 2008 08:51:57 -0800 Message-ID: <47A34E2D.2090202@imageworks.com> Date: Fri, 01 Feb 2008 08:51:57 -0800 From: Matt Chambers Reply-To: chambers@imageworks.com Organization: Sony Pictures Imageworks User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Pg JDBC3 driver and savepoints Content-Type: multipart/alternative; boundary="------------050101090407030201010700" X-OriginalArrivalTime: 01 Feb 2008 16:51:57.0957 (UTC) FILETIME=[C1FDFB50:01C864F2] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/1 X-Sequence-Number: 18208 This is a multi-part message in MIME format. --------------050101090407030201010700 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Has anyone here used the Spring Framework and JDBC template and nested transactions? The documentation for Spring claims that if the JDBC driver supports save points then it would use them in particular situations, for example when you marked a method as a nested transaction. I know postgres supports save points and that I can manually save point, but the spring framework is not detecting the driver supports save points. Is there some savepoint interface that has to be implemented? -- -Matt --------------050101090407030201010700 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Has anyone here used the Spring Framework and JDBC template and nested transactions?  The documentation for Spring claims that if the JDBC driver supports save points then it would use them in particular situations, for example when you marked a method as a nested transaction.   I know postgres supports save points and that I can manually save point, but the spring framework is not detecting the driver supports save points. Is there some savepoint interface that has to be implemented?



--
-Matt

--------------050101090407030201010700-- From books@ejurka.com Fri Feb 1 20:37:40 2008 Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3B8602E010B for ; Fri, 1 Feb 2008 16:37:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 85484-03 for ; Fri, 1 Feb 2008 16:37:37 -0400 (AST) Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 773A22E00DE for ; Fri, 1 Feb 2008 16:37:37 -0400 (AST) Received: (qmail 24111 invoked by uid 1112); 1 Feb 2008 20:37:35 -0000 Date: Fri, 1 Feb 2008 15:37:35 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Matt Chambers cc: pgsql-jdbc@postgresql.org Subject: Re: Pg JDBC3 driver and savepoints In-Reply-To: <47A34E2D.2090202@imageworks.com> Message-ID: References: <47A34E2D.2090202@imageworks.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/2 X-Sequence-Number: 18209 On Fri, 1 Feb 2008, Matt Chambers wrote: > Has anyone here used the Spring Framework and JDBC template and nested > transactions? The documentation for Spring claims that if the JDBC driver > supports save points then it would use them in particular situations, for > example when you marked a method as a nested transaction. I know postgres > supports save points and that I can manually save point, but the spring > framework is not detecting the driver supports save points. Is there some > savepoint interface that has to be implemented? > I would guess Spring would use DatabaseMetaData.supportsSavepoints() to determine if it can use savepoints. Our implementation of that says, "return connection.haveMinimumServerVersion("8.0");", so as long as you've got a 8.0+ server it should work. For more details you'd have to ask the Spring people. Kris Jurka