X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8754E52862 for ; Fri, 12 Aug 2005 14:09:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23855-03 for ; Fri, 12 Aug 2005 17:09:34 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 434C953041 for ; Fri, 12 Aug 2005 14:09:33 -0300 (ADT) Received: (qmail 16956 invoked from network); 12 Aug 2005 17:09:33 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 12 Aug 2005 17:09:33 -0000 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <05B0404F-A541-4EC9-89C1-64BFE35474EF@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: problem with stored procedure ,transaction and jdbc Date: Fri, 12 Aug 2005 13:09:31 -0400 To: Jiangyi X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=[AWL=0.013] X-Spam-Level: X-Archive-Number: 200508/89 X-Sequence-Number: 13658 Yes you can enclose two stored procedures inside a transaction. Can you call the second one on it's own without the first one without getting an exception ? Dave On 12-Aug-05, at 12:47 PM, Jiangyi wrote: > Hello everyone, > I have a probem with stored procedure ,transaction and JDBC. > i am confused with the relation between stored procedure, > transcation and jdbc. > > supposed I have code looks like: > > set autocommit to false > call strored procedure 1 > call strored procedure 2 > when I call the second stored procedure, exception raised > so I close the connection and the callable statement. > > My question is can I enclose the two stored procedure in a parent > transcaton > use JDBC ? If not , why? > > Regards > Jiang > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > >