Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 21026 invoked from network); 4 Dec 2008 02:58:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2008 02:58:21 -0000 Received: (qmail 66714 invoked by uid 500); 4 Dec 2008 02:58:32 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 66656 invoked by uid 500); 4 Dec 2008 02:58:32 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 66642 invoked by uid 99); 4 Dec 2008 02:58:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 18:58:32 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.62] (HELO smtp107.prem.mail.sp1.yahoo.com) (98.136.44.62) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 Dec 2008 02:57:02 +0000 Received: (qmail 75821 invoked from network); 4 Dec 2008 02:56:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=1vGtVnFaJ0XN388akJFHPnWUOM5Zo+Ttl6bSiFSEOumslfqDxNFh5qY77sZKd2/3L2645C9or9l47jVe8+higHnHjF9LLzzMYziP+WkLMMXCQ/rKxST2e82DWb9dkJNVLKD0pbyulqcNn0RH3UxqSRy3XeCN4RPRffFMZFWCkRM= ; Received: from unknown (HELO ?10.11.55.45?) (david_jencks@63.105.20.225 with plain) by smtp107.prem.mail.sp1.yahoo.com with SMTP; 4 Dec 2008 02:56:45 -0000 X-YMail-OSG: phnVdRwVM1lHyN5ySy6AS9R0i_agdbMphVxA8ANxessEppismu32XSEh.0UpNyTr9gvxU3QyMJ1vynLRO.OVHqm.uua.9d5GiIRcpsSNOn3022f5ADQnp8ggWDYpI7pJnp7ib8BI.XItMCjvuU8zFT_zBsid7Evn6hkzZesISCpP5sFIgRk2_26lTls- X-Yahoo-Newman-Property: ymail-3 Message-Id: <9EAE0D17-50CE-4C8A-8999-C23F7803436E@yahoo.com> From: David Jencks To: dev@geronimo.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: svn commit: r722725 - in /geronimo/components/txmanager/branches/geronimo-txmanager-parent-2.1.1/geronimo-transaction/src: main/java/org/apache/geronimo/transaction/manager/ test/java/org/apache/geronimo/transaction/manager/ Date: Wed, 3 Dec 2008 18:56:39 -0800 References: <20081203025112.2D12E238895F@eris.apache.org> <4935FAC9.7030708@earthlink.net> <4937035D.2040005@earthlink.net> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org Hi Lin, thinking back maybe the branches/2.1.1 was a mistaken leftover from a tag... :-\ Anyway before starting on the connector 1.6 stuff in trunk I changed logging over to slf4j. It would be great if you could get this change into the 2.1.2 I think you are proposing. rev 704747 on geronimo/components/txmanager/trunk October 14. many thanks david jencks On Dec 3, 2008, at 6:28 PM, Lin Sun wrote: > Hi Joe, do you mean these questions? > > - Where is the new testTransactionKey() method used that was added > here and > in trunk? > - Is this something that we need to consider including with Geronimo > 2.2? > > > Sorry I think I sorta answered them. The testTransactionKey() method > was added here in trunk - > https://svn.apache.org/repos/asf/geronimo/components/txmanager/trunk/geronimo-transaction/src/test/java/org/apache/geronimo/transaction/manager/TransactionSynchronizationRegistryTest.java > . > This is a test method so it is only used when test is running. :) > > G 2.2 is currently configured to use txmanager 2.1.1. I think I am > going to have a few other changes on txmanager, so I am not sure if I > can get all these in time for G 2.2. If I can get a txmanager > released (with all the changes I want) + pass the tck, I think G 2.2 > should pick up the newer version of txmanager. > > Lin > > On Wed, Dec 3, 2008 at 5:08 PM, Joe Bohn > wrote: >> Any answers to the other questions below? >> >> Thanks, >> Joe >> >> Lin Sun wrote: >>> >>> Hi Joe, >>> >>> Thanks for the review! >>> >>> There is a 2.1.1 tag here - >>> >>> http://svn.apache.org/viewvc/geronimo/components/txmanager/tags/geronimo-txmanager-parent-2.1.1/ >>> >>> So I checked code into branch/2.1.1 for the change to be included in >>> txmanager 2.1.2. I also checked the code into txmanager trunk (see >>> rev 722724) for the change to be included in txmanager 2.2. >>> Basically I am just following what we do with G server 2.1 branch >>> and >>> 2.2 trunk. Now that you question this, I am thinking should not >>> the >>> branch be called 2.1 instead of 2.1.1? Or maybe we should just >>> check >>> code into txmanager trunk? >>> >>> Lin >>> >>> >>> On Tue, Dec 2, 2008 at 10:19 PM, Joe Bohn >>> wrote: >>>> >>>> Hi Lin, >>>> >>>> A few questions: >>>> >>>> - Why modify branches/2.1.1? I'm not sure, but it looks like >>>> this is an >>>> old >>>> branch that was subsequently copied to tags/2.1.1 (rather than >>>> moved to >>>> tags). >>>> - Where is the new testTransactionKey() method used that was >>>> added here >>>> and >>>> in trunk? >>>> - Is this something that we need to consider including with >>>> Geronimo 2.2? >>>> >>>> Joe >>>> >>>> linsun@apache.org wrote: >>>>> >>>>> Author: linsun >>>>> Date: Tue Dec 2 18:51:11 2008 >>>>> New Revision: 722725 >>>>> >>>>> URL: http://svn.apache.org/viewvc?rev=722725&view=rev >>>>> Log: >>>>> GERONIMO-4438 - >>>>> TransactionSynchronizationRegistry.getTransactionKey >>>>> should return null when transaction is not associated with the >>>>> current >>>>> thread >>>>> >>>>> Modified: >>>>> >>>>> >>>>> geronimo/components/txmanager/branches/geronimo-txmanager- >>>>> parent-2.1.1/geronimo-transaction/src/main/java/org/apache/ >>>>> geronimo/transaction/manager/TransactionManagerImpl.java >>>>> >>>>> >>>>> geronimo/components/txmanager/branches/geronimo-txmanager- >>>>> parent-2.1.1/geronimo-transaction/src/test/java/org/apache/ >>>>> geronimo/transaction/manager/ >>>>> TransactionSynchronizationRegistryTest.java >>>>> >>>>> Modified: >>>>> >>>>> geronimo/components/txmanager/branches/geronimo-txmanager- >>>>> parent-2.1.1/geronimo-transaction/src/main/java/org/apache/ >>>>> geronimo/transaction/manager/TransactionManagerImpl.java >>>>> URL: >>>>> >>>>> http://svn.apache.org/viewvc/geronimo/components/txmanager/branches/geronimo-txmanager-parent-2.1.1/geronimo-transaction/src/main/java/org/apache/geronimo/transaction/manager/TransactionManagerImpl.java?rev=722725&r1=722724&r2=722725&view=diff >>>>> >>>>> >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> ================================================================== >>>>> --- >>>>> >>>>> geronimo/components/txmanager/branches/geronimo-txmanager- >>>>> parent-2.1.1/geronimo-transaction/src/main/java/org/apache/ >>>>> geronimo/transaction/manager/TransactionManagerImpl.java >>>>> (original) >>>>> +++ >>>>> >>>>> geronimo/components/txmanager/branches/geronimo-txmanager- >>>>> parent-2.1.1/geronimo-transaction/src/main/java/org/apache/ >>>>> geronimo/transaction/manager/TransactionManagerImpl.java >>>>> Tue Dec 2 18:51:11 2008 >>>>> @@ -205,8 +205,8 @@ >>>>> } >>>>> public Object getTransactionKey() { >>>>> - TransactionImpl tx = getActiveTransactionImpl(); >>>>> - return tx.getTransactionKey(); >>>>> + TransactionImpl tx = (TransactionImpl) getTransaction(); >>>>> + return tx == null ? null: tx.getTransactionKey(); >>>>> } >>>>> public int getTransactionStatus() { >>>>> >>>>> Modified: >>>>> >>>>> geronimo/components/txmanager/branches/geronimo-txmanager- >>>>> parent-2.1.1/geronimo-transaction/src/test/java/org/apache/ >>>>> geronimo/transaction/manager/ >>>>> TransactionSynchronizationRegistryTest.java >>>>> URL: >>>>> >>>>> http://svn.apache.org/viewvc/geronimo/components/txmanager/branches/geronimo-txmanager-parent-2.1.1/geronimo-transaction/src/test/java/org/apache/geronimo/transaction/manager/TransactionSynchronizationRegistryTest.java?rev=722725&r1=722724&r2=722725&view=diff >>>>> >>>>> >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> = >>>>> ================================================================== >>>>> --- >>>>> >>>>> geronimo/components/txmanager/branches/geronimo-txmanager- >>>>> parent-2.1.1/geronimo-transaction/src/test/java/org/apache/ >>>>> geronimo/transaction/manager/ >>>>> TransactionSynchronizationRegistryTest.java >>>>> (original) >>>>> +++ >>>>> >>>>> geronimo/components/txmanager/branches/geronimo-txmanager- >>>>> parent-2.1.1/geronimo-transaction/src/test/java/org/apache/ >>>>> geronimo/transaction/manager/ >>>>> TransactionSynchronizationRegistryTest.java >>>>> Tue Dec 2 18:51:11 2008 >>>>> @@ -57,6 +57,15 @@ >>>>> tm.getTransaction().registerSynchronization(normalSync); >>>>> } >>>>> + public void testTransactionKey() throws Exception { >>>>> + normalSync = new CountingSync(); >>>>> + assertNull(tm.getTransactionKey()); >>>>> + setUpInterposedSync(); >>>>> + tm.getTransaction().registerSynchronization(normalSync); >>>>> + assertNotNull(tm.getTransactionKey()); >>>>> + tm.commit(); >>>>> + assertNull(tm.getTransactionKey()); >>>>> + } >>>>> public void testInterposedSynchIsCalledOnCommit() throws >>>>> Exception >>>>> { >>>>> setUpInterposedSync(); >>>>> >>>>> >>>>> >>>> >>> >> >>