Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 8120 invoked from network); 17 Feb 2007 19:43:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2007 19:43:27 -0000 Received: (qmail 22326 invoked by uid 500); 17 Feb 2007 19:43:35 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 22277 invoked by uid 500); 17 Feb 2007 19:43:35 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 22267 invoked by uid 99); 17 Feb 2007 19:43:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Feb 2007 11:43:34 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Feb 2007 11:43:26 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 78E8B1A981D; Sat, 17 Feb 2007 11:43:06 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r508800 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireTransactionInfo.h Date: Sat, 17 Feb 2007 19:43:06 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070217194306.78E8B1A981D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Sat Feb 17 11:43:05 2007 New Revision: 508800 URL: http://svn.apache.org/viewvc?view=rev&rev=508800 Log: http://issues.apache.org/activemq/browse/AMQCPP-30 Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireTransactionInfo.h Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireTransactionInfo.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireTransactionInfo.h?view=diff&rev=508800&r1=508799&r2=508800 ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireTransactionInfo.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireTransactionInfo.h Sat Feb 17 11:43:05 2007 @@ -36,13 +36,10 @@ // Session Info - We do not own this const SessionInfo* session; - // Locally generated Transaction Id - long long transactionId; - public: OpenWireTransactionInfo() { - transactionId = 0; + transactionInfo = NULL; session = NULL; } @@ -53,7 +50,11 @@ * @return integral vlaue of the Id */ virtual long long getTransactionId(void) const { - return this->transactionId; + if( transactionInfo != NULL ) { + return ( dynamic_cast( + transactionInfo->getTransactionId() ) )->getValue(); + } + return 0; } /** @@ -61,7 +62,10 @@ * @param id integral value of the Id */ virtual void setTransactionId( long long id ) { - this->transactionId = id; + if( transactionInfo != NULL ) { + ( dynamic_cast( + this->transactionInfo->getTransactionId() ) )->setValue( id ); + } } /**