Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 16588 invoked from network); 3 Feb 2009 16:57:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2009 16:57:22 -0000 Received: (qmail 62081 invoked by uid 500); 3 Feb 2009 16:57:21 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 62056 invoked by uid 500); 3 Feb 2009 16:57:21 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 62045 invoked by uid 99); 3 Feb 2009 16:57:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 08:57:21 -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: domain of bmurphy1976@gmail.com designates 209.85.128.186 as permitted sender) Received: from [209.85.128.186] (HELO fk-out-0910.google.com) (209.85.128.186) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 16:57:14 +0000 Received: by fk-out-0910.google.com with SMTP id z22so1925952fkz.6 for ; Tue, 03 Feb 2009 08:56:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=W3ebVUMujFNYRtq6oxVyGfjaStohi1ygSfS2/EsvO8c=; b=ryCRoY6ldcl3clF3Fa1FhEqldlTypyEb2xzvT2fQd+Sz2mcbyjXuNfqL13f9dJajKA oXHxcNLal5FMR8iOCn0gi0mF2Mjam8RxbWKv2Wgfj4r5U69tvrZJwisZwliaNRKrLV3I WSdfQcDRBmGZcjjWG6sVnRJJuRxjq68g+BJ74= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=sBMM7VL+KebzDNt7DAGN+Z5Cx952vTZifOBSf5RziKezlfJvo3nOXydG7ZamvZGoUe JbslVFGg3rnq0WatLxZI14rgEW5roHdyz/u0ieh02DTG0e3N5d0ep2nVI+R7aEFXOBD7 CIxzPcngze0Kv4CrU8lFwOvQtoTeU+u+/hTz0= MIME-Version: 1.0 Received: by 10.181.227.9 with SMTP id e9mr2143220bkr.133.1233680212897; Tue, 03 Feb 2009 08:56:52 -0800 (PST) In-Reply-To: <5a56ce1b0901290900v3ce6ac03vab01358bd65f0679@mail.gmail.com> References: <7fd310d10812291502w72db90f0ra70d2a1b3ecfa953@mail.gmail.com> <5a56ce1b0901290900v3ce6ac03vab01358bd65f0679@mail.gmail.com> Date: Tue, 3 Feb 2009 10:56:52 -0600 Message-ID: <7fd310d10902030856n6852eafek7a08b5aeb54f0572@mail.gmail.com> Subject: Re: Transactional Send Messages (NMS) From: Bryan Murphy To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Essentially two phase commit. We keep running into the problem where our message are handled before the producer can commit it's transaction to the database, therefore the consumer does not see the correct data. We currently work around this by either putting a sleep delay at the beginning of the consumer (bad), or by sending the messages after the transaction commit (lots of extra buggy code), neither of which am I particularly happy with as a long term solution. Bryan On Thu, Jan 29, 2009 at 11:00 AM, Jim Gomes wrote: > Hi Bryan, > > I'm not sure what you mean by participating inside a transaction. Are you > talking about implementing a two-phase commit extended transaction > operation? Or are you talking about using the transaction acknowledgment > mode that is part of NMS? > > - Jim > > On Mon, Dec 29, 2008 at 3:02 PM, Bryan Murphy wrote: > >> Is there a way I can have the sending of messages to a message queue >> participate inside a transaction while using C# and NMS? >> >> Thanks, >> Bryan >> >