Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id BA6822E003A for ; Wed, 21 Nov 2007 17:46:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 73237-03 for ; Wed, 21 Nov 2007 17:46:02 -0400 (AST) Received: from rn-out-0102.google.com (rn-out-0910.google.com [64.233.170.185]) by postgresql.org (Postfix) with ESMTP id 0F7442E003B for ; Wed, 21 Nov 2007 17:46:05 -0400 (AST) Received: by rn-out-0102.google.com with SMTP id s46so3782317rnb for ; Wed, 21 Nov 2007 13:46:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=K3EvRTvDAwSWygbN2MEo2PR6wdgyzMxz87F/wspwdWs=; b=cB85vP21Jxj9rLjpbx7PPKQHjf3JErVzPJxE7lC4g0uV3KN5T6ODXQXyy6Eb9rjIztWpwjMuA/Jktq07/WPTbWWvb14ERSAfzwUbWQ/BuRvz3Sr8Qm4AaQ/HQ/xyqMLkgu+U40kx+OlJGb3lTW6gmio6Rf0ckWPOm2Fe5CncvbM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=HHR3I6mQhBwGwm64oLKqnUVd6NowzG3H/iNcFgIp80N50pgBezXQPsvHFGlKwzIevbaMaM1oIXOYntCGwiovC1aIInv2bCRha6Yayj792O9zHhk9e0uknZsGh0GCoiqO61YW0PGC8jq5IoshsZk4ssNWFrKB9HUVuENlkV0Ne3E= Received: by 10.78.177.3 with SMTP id z3mr8938528hue.1195681562267; Wed, 21 Nov 2007 13:46:02 -0800 (PST) Received: from ?10.0.0.10? ( [83.189.135.21]) by mx.google.com with ESMTPS id g8sm429594muf.2007.11.21.13.45.59 (version=SSLv3 cipher=RC4-MD5); Wed, 21 Nov 2007 13:46:00 -0800 (PST) Subject: Re: Recommendations for Java XA toolkit to use with Postgresql From: =?ISO-8859-1?Q?jo=EBl?= Winteregg To: "Garber, Mikhail" Cc: pgsql-jdbc In-Reply-To: <5B6EE82A8CF89149BA864458DB6053470385FBC0FA@EX-SEA5-A.ant.amazon.com> References: <5B6EE82A8CF89149BA864458DB6053470385FBC0FA@EX-SEA5-A.ant.amazon.com> Content-Type: text/plain; charset=ISO-8859-1 Date: Wed, 21 Nov 2007 22:45:55 +0100 Message-Id: <1195681555.6421.21.camel@hatman> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/67 X-Sequence-Number: 17822 Hi Mikhail, I'm not a JTA expert but I have been trying several TransactionManager regarding my needs (a specific standalone J2SE RMI server which is using Hibernate as Postgresql "driver"). So I tried several TransactionManager with Hibernate: - The first one was Atomikos solution but I had many problems and was not able to make it work using postgresql-jdbc. You can check the following URL for more informations: http://www.atomikos.org/forums/viewtopic.php?t=1280 (at the end, it seems that Atomikos has compatibility problems with postgresql-jdbc) - The second one was Jboss implementation, but using the following example http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheHibernateTransactionsStandaloneExample I was not able to make it work too (but I must say, I didn't tried too much to make it work because of the no-LGPL licence) - The third one was BTM and that was a good try ! Now i'm using it and it just work like a charm. While I was testing it using PG logs, I just found a strange behaviour in postgresql-jdbc XA (http://archives.postgresql.org/pgsql-jdbc/2007-11/msg00051.php) but it is now fixed (next postgresql-jdbc release will include the fix). Here is maybe what you need for a first test using BTM and Spring: http://docs.codehaus.org/display/BTM/Spring+Framework BTM seems to be a small project developed by a single Belgium guy but it was the best solution i found... Maybe you will find some more JTA framework on Spring web page ! For JOTM, I never tied it because it seems to be a bit old (the last news on their website is from: 16th May 2005 and the last install package from: May 17, 2005) I hope it helps a bit ! Regards, Joël On Wed, 2007-11-21 at 08:25 -0800, Garber, Mikhail wrote: > I need to run distributed transactions against several PG databases. What do people recommend as far as the overall solution: which transaction manager, container, etc? Jboss, JOTM, BTM, or what? Easy Spring integration preferred. > > TIA > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend