Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78CE779C5 for ; Mon, 5 Dec 2011 23:45:02 +0000 (UTC) Received: (qmail 40101 invoked by uid 500); 5 Dec 2011 23:45:02 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 40064 invoked by uid 500); 5 Dec 2011 23:45:02 -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 40057 invoked by uid 99); 5 Dec 2011 23:45:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 23:45:02 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 23:45:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 36913C91C3 for ; Mon, 5 Dec 2011 23:44:41 +0000 (UTC) Date: Mon, 5 Dec 2011 23:44:41 +0000 (UTC) From: "Hiram Chirino (Resolved) (JIRA)" To: commits@activemq.apache.org Message-ID: <1742015454.43327.1323128681224.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1467536682.43248.1323127721290.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (APLO-100) Support a `include-seq` and `from-seq` option on the `SUBSCRIBE` frame to finely control from where in a queue a subscription starts from. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/APLO-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hiram Chirino resolved APLO-100. -------------------------------- Resolution: Fixed > Support a `include-seq` and `from-seq` option on the `SUBSCRIBE` frame to finely control from where in a queue a subscription starts from. > ------------------------------------------------------------------------------------------------------------------------------------------ > > Key: APLO-100 > URL: https://issues.apache.org/jira/browse/APLO-100 > Project: ActiveMQ Apollo > Issue Type: New Feature > Components: apollo-broker > Reporter: Hiram Chirino > Assignee: Hiram Chirino > Fix For: 1.0-beta6 > > > As messages are added to a queue in a broker, they are assigned an incrementing > sequence number. Messages delivered to subscribers can be updated to include > the sequence number if the `include-seq` header is added to the `SUBSCRIBE` > frame. This header should be set to a header name which will be added > messages delivered to hold value of the sequence number. > Example: > SUBSCRIBE > id:mysub > destination:/queue/foo > include-seq:seq > > ^@ > Then you can expect to receive messages like: > MESSAGE > subscription:mysub > destination:/queue/foo > seq:1 > > Hello > ^@ > MESSAGE > subscription:mysub > destination:/queue/foo > seq:2 > > World > ^@ > Furthermore, you configure the `SUBSCRIBE` frame so that the subscription > only receives messages that have a sequence id that is equal to or greater > than a requested value by using the `from-seq` header. Example: > SUBSCRIBE > id:mysub > destination:/queue/foo > from-seq:10 > > ^@ > If the `from-seq` is set to `-1`, then the subscription will receive messages > from the tail of the queue. In other words, it will only receive new messages sent > to the queue. > Note: You can only use the `from-seq` header with normal destinations. If you > attempt to use it with a wildcard or composite destination then the connection > will be closed due to invalid usage. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira