Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 49142 invoked from network); 19 Apr 2007 17:24:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Apr 2007 17:24:54 -0000 Received: (qmail 70558 invoked by uid 500); 19 Apr 2007 17:24:59 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 70538 invoked by uid 500); 19 Apr 2007 17:24:59 -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 70525 invoked by uid 99); 19 Apr 2007 17:24:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 10:24:59 -0700 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 (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 10:24:51 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HeaMx-0005Ul-9f for users@activemq.apache.org; Thu, 19 Apr 2007 10:24:31 -0700 Message-ID: <10082719.post@talk.nabble.com> Date: Thu, 19 Apr 2007 10:24:31 -0700 (PDT) From: Pete Schwamb To: users@activemq.apache.org Subject: Parallel processors on a single topic/queue MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: pete@meteostar.com X-Virus-Checked: Checked by ClamAV on apache.org I'm using activemessaging to connect to a stomp interface on an ActiveMQ broker, and having trouble processing all of the messages that are coming over my subscription to a topic. The messages take a fair amount of cpu as they must be unzipped, processed, and stored to the db. So much that I'd like to add another processor (subscriber) to help keep up with the message flow, but I'm not sure how to make two clients feed off of the same topic (not a queue, currently). I tried adding a subcriptionName attribute to my subscription, and started two processors, but that turned it into a durable subscription, and messages started backing up, and activemq hung! I'd rather keep it a non-durable subscription, as I have a MaximumPendingMessageLimit set and would like to discard messages when the subscribers can't keep up. I'd also like to keep sending the messages to a topic rather than a queue, as there are other systems that subscribe to this same topic. Is there a way to do what I'd like to, and not have messages pile up in the broker when the subscriber is slow for any reason? I have a feeling that this is possible, but I just don't know the right approach/configuration. Thanks, -Pete -- View this message in context: http://www.nabble.com/Parallel-processors-on-a-single-topic-queue-tf3608561s2354.html#a10082719 Sent from the ActiveMQ - User mailing list archive at Nabble.com.