Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 9BE5B9FA4C3 for ; Sun, 8 Oct 2006 02:40:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 95778-03 for ; Sun, 8 Oct 2006 05:40:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id B524D9FA4AD for ; Sun, 8 Oct 2006 02:40:11 -0300 (ADT) Received: (qmail 25204 invoked from network); 8 Oct 2006 05:40:10 -0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 8 Oct 2006 05:40:10 -0000 Message-ID: <45288F3C.1030906@ejurka.com> Date: Sat, 07 Oct 2006 23:40:12 -0600 From: Kris Jurka User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Ludovic Orban CC: pgsql-jdbc@postgresql.org Subject: Re: Postgres XA support References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200610/45 X-Sequence-Number: 15928 Ludovic Orban wrote: > I rencently found this thread on PotgreSQL's forum: > http://archives.postgresql.org/pgsql-jdbc/2006-04/msg00150.php > and I just wanted to let you know that calling Connection.close() > before or after the commit is the transaction manager's job or more > precisely the XA connection pool's job. So you're suggesting that the code example here is incorrect and it must call commit before close? It really seems like a transaction ought to correcty wrap the connection open/close which is the fix that I put in. http://archives.postgresql.org/pgsql-jdbc/2006-04/msg00149.php > I'd like to know a bit more about Postgres' XA support before testing > it (to add it to my support list: > http://www.bitronix.be/Btm/DatabasesXASupportEvaluation#postgres) and > I'd be happy if you could brielfy tell me how you think it's working. Honestly, I have no idea. As a maintainer I occasionally have to write/review code that I don't know much about and XA is one of those. Asking on the jdbc list (cced) is the best place to get information as the authors and users of the XA code can attest to its support much better than I can. I hear it works with Orion and with a small patch Weblogic. My limited testing showed it worked with Simple-JTA. Kris Jurka