Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA1B28E75 for ; Tue, 30 Aug 2011 11:37:25 +0000 (UTC) Received: (qmail 81219 invoked by uid 500); 30 Aug 2011 11:37:25 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 81045 invoked by uid 500); 30 Aug 2011 11:37:23 -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 81036 invoked by uid 99); 30 Aug 2011 11:37:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2011 11:37:23 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martinc@gmx.at designates 213.165.64.22 as permitted sender) Received: from [213.165.64.22] (HELO mailout-de.gmx.net) (213.165.64.22) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 30 Aug 2011 11:37:17 +0000 Received: (qmail invoked by alias); 30 Aug 2011 11:36:55 -0000 Received: from mail-pz0-f46.google.com (EHLO mail-pz0-f46.google.com) [209.85.210.46] by mail.gmx.net (mp010) with SMTP; 30 Aug 2011 13:36:55 +0200 X-Authenticated: #423381 X-Provags-ID: V01U2FsdGVkX19uLRV8YtBu/Q7O/XX6J/Ru2Rh663/hgR5yc3rDm9 WSqcZnG4niAgcN Received: by pzk32 with SMTP id 32so11459723pzk.5 for ; Tue, 30 Aug 2011 04:36:54 -0700 (PDT) Received: by 10.142.201.15 with SMTP id y15mr3106411wff.338.1314704148409; Tue, 30 Aug 2011 04:35:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.83.17 with HTTP; Tue, 30 Aug 2011 04:34:29 -0700 (PDT) In-Reply-To: <1314698453256-3778352.post@n4.nabble.com> References: <1314698453256-3778352.post@n4.nabble.com> From: "Martin C." Date: Tue, 30 Aug 2011 13:34:29 +0200 Message-ID: Subject: Re: Retrieve last message published in a topic To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Y-GMX-Trusted: 0 Hi, you may look into "retroactive consumers" and "retroactive subscriptions". For a starting point, visit http://activemq.apache.org/retroactive-consumer.html and http://activemq.apache.org/subscription-recovery-policy.html Best regards, Martin On Tue, Aug 30, 2011 at 12:00 PM, stratio wrote: > Hello, this is my situation: > > I have a topic on which i publish several messages and after the last one i > stop publishing on the topic. > > Later I subscribe to this topic with an AJAX client. > > Is there a way to recover the last message published on the topic so that > the client can receive it? > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Retrieve-last-message-published-in-a-topic-tp3778352p3778352.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >