X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 647ACD8DAE for ; Wed, 2 Nov 2005 13:25:21 -0400 (AST) 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 36266-09 for ; Wed, 2 Nov 2005 17:25:18 +0000 (GMT) Received: from smtp-2.hut.fi (smtp-2.hut.fi [130.233.228.92]) by svr1.postgresql.org (Postfix) with ESMTP id 4EC1AD8CE3 for ; Wed, 2 Nov 2005 13:25:18 -0400 (AST) Received: from localhost (putosiko.hut.fi [130.233.228.114]) by smtp-2.hut.fi (8.12.10/8.12.10) with ESMTP id jA2HM5HT009601; Wed, 2 Nov 2005 19:22:05 +0200 Received: from smtp-2.hut.fi ([130.233.228.92]) by localhost (putosiko.hut.fi [130.233.228.114]) (amavisd-new, port 10024) with LMTP id 27136-17; Wed, 2 Nov 2005 19:22:04 +0200 (EET) Received: from kosh.hut.fi (kosh.hut.fi [130.233.228.10]) by smtp-2.hut.fi (8.12.10/8.12.10) with ESMTP id jA2HLq13009585; Wed, 2 Nov 2005 19:21:52 +0200 Date: Wed, 2 Nov 2005 19:21:52 +0200 (EET) From: Heikki Linnakangas To: Kris Jurka Cc: pg@fastcrypt.com, pgsql-jdbc@postgresql.org Subject: Re: XADataSource interface In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-TKK-Virus-Scanned: by amavisd-new-2.1.2-hutcc at putosiko.hut.fi X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.002 required=5 tests=[AWL=0.002] X-Spam-Score: 0.002 X-Spam-Level: X-Archive-Number: 200511/8 X-Sequence-Number: 14106 On Mon, 31 Oct 2005, Kris Jurka wrote: > > > On Sun, 30 Oct 2005, Heikki Linnakangas wrote: > >> The failures at testRecover and testRollback were because >> PGXAConnection.rollback method called Xid.equals with null argument. >> I added a null-check for that, see attached patch. > > Applied. I'll put out a new dev release with the xa patches later tonight. > Can you clarify what does/doesn't work in xa for the docs? Thanks! English is not my native language, so please check spelling: " The JTA specification requires an XADataSource implementation to support transaction interleaving (see JTA spec section 3.4.4). However, since PostgreSQL server doesn't support it natively, the JDBC driver cannot support it either. The same goes for suspend/resume. In practice, transaction managers don't need transaction interleaving or suspend/resume to function correctly. Some commercial databases also don't implement them natively, but emulate them in the JDBC driver. That's error prone; PostgreSQL driver will throw an XAException instead. " The docs should also include instructions for using the XADataSource. Example configurations for various application servers would be a nice too. - Heikki