Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 217 invoked from network); 19 Sep 2005 10:47:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2005 10:47:19 -0000 Received: (qmail 42429 invoked by uid 500); 19 Sep 2005 10:47:18 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 42416 invoked by uid 99); 19 Sep 2005 10:47:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2005 03:47:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.28.130.38] (HELO hostedexchange.hostedservice.com) (217.28.130.38) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2005 03:47:25 -0700 Received: from hostedexchange.hostedservice.com ([192.168.18.21]) by hostedexchange.hostedservice.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 19 Sep 2005 11:41:17 +0100 Received: from [192.168.0.104] ([213.156.103.74]) by hostedexchange.hostedservice.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 19 Sep 2005 11:40:51 +0100 Message-ID: <432E96AA.2090802@cognifide.com> Date: Mon, 19 Sep 2005 12:44:58 +0200 From: Marcin Cenkier User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: transaction implementation References: <1327367685.20050916095403@gmail.com> <432E850F.60401@cognifide.com> <971045423.20050919124727@gmail.com> In-Reply-To: <971045423.20050919124727@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Sep 2005 10:40:52.0671 (UTC) FILETIME=[9B8734F0:01C5BD06] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello Costin, >>Why don't you use JOTM and enlist XAResource in it? > > There are two TMs - one local and one global. The difference between > them is that the localTM is a lightweight approach which you > can/should use when you don't want your transaction to be part of the > JTA. It's basically just an option which you can use. > > The second TM enlists the transaction wiht the JTA transaction > manager(like JOTM). At first I tried to use JOTM from the beginning > but it's a singleton - one instance per VM so basically if you want > your repozitory to use local transactions inside an app server or > along JOTM you can't. Yes, but when you run inside Tomcat, it's the only way :> I'd see this resolved the way that TM is set in Spring configurtion and its either JOTM or some TM taken from JNDI or something totally different... So you can enlist resources in your favorote TM just by using JTA API - then you don't have to create dummy Xid but relay on external TM implementation. Or am I missing something? Cheers, Marcin Cenkier PS. Could you set up some read only cvs to let more people review your work? I'm very curious about it and can't stand waiting :-)