Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 13579 invoked from network); 27 May 2009 10:20:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 May 2009 10:20:30 -0000 Received: (qmail 51203 invoked by uid 500); 27 May 2009 10:20:42 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 51148 invoked by uid 500); 27 May 2009 10:20:42 -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 51138 invoked by uid 99); 27 May 2009 10:20:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 10:20:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 10:20:33 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1M9GF2-0002pe-1R for users@activemq.apache.org; Wed, 27 May 2009 03:20:12 -0700 Message-ID: <23739749.post@talk.nabble.com> Date: Wed, 27 May 2009 03:20:12 -0700 (PDT) From: mvhoof To: users@activemq.apache.org Subject: Producer Acknowledge in NMS ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mvhoof@tp2net.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have a requirement to built a message queue Consumer/producer which works on flaky connections. Now this consumer/producer could be rebooted at all times (we have no control over this). So my challenge is this: Simply sending the Message using a MessageProducer, i know when a message is actually sent, however, this could block the application if the connection is down AND, if the machine is rebooted, i could loose the messages . Using RequestTimeOut, i could bypass the locking issue, however.. how can i find out if a message has been sent or not ? I've read just about everything i could find on ActiveMQ and NMS but this does not show up anywhere ? For building a trusty system, i really need to know if the message has been sent and if not, i can cache it locally until connection is restored. Secondly, is there any way to monitor the connection with the broker using NMS (we are using the failover protocol) so i can retry sending the chached messages as soon as connection is up again ? Many thanks in advance ! -- View this message in context: http://www.nabble.com/Producer-Acknowledge-in-NMS---tp23739749p23739749.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.