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 1EFE8114DA for ; Thu, 10 Jul 2014 14:15:01 +0000 (UTC) Received: (qmail 72534 invoked by uid 500); 10 Jul 2014 14:15:00 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 72491 invoked by uid 500); 10 Jul 2014 14:15:00 -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 72472 invoked by uid 99); 10 Jul 2014 14:15:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2014 14:15:00 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.217.171 as permitted sender) Received: from [209.85.217.171] (HELO mail-lb0-f171.google.com) (209.85.217.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2014 14:14:56 +0000 Received: by mail-lb0-f171.google.com with SMTP id s7so6253072lbd.30 for ; Thu, 10 Jul 2014 07:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oS3zeGghHRfQHIS6osug/nM5bVWdQ+n9nVcflKX7x1U=; b=JG2QkcwHAxSGpvJJ8HP4lP4EUSGb9mSoa+HRO9V5bNvC/Xqh1VGYVTtj5FTTgpAIkw 2wp0d2Tda/r2waCNO8zDBH5X4HZbAdFK9dPtBFvjUdFZ7pkv4NHYBJfQemM/ROJ13LBj CJkXJLQJHrGg4kdXqt+PqQEMLx6QjyfnD8n6s97xAhLl9pODO1dqjbKhipJnNqpPRmA4 DxI7Fxj/yu8df2amwkFYc8JEwzwTCl7SDhq6nCYJQubNrWUM4kr3kI3BCf0jS61gLJk7 w3/m97TQAQTV9zzgpiej1ZXpSYWKJ7rushywP8hHo0KOTB93hMe591JSaU4PtrFAEVIa uc9w== MIME-Version: 1.0 X-Received: by 10.112.125.102 with SMTP id mp6mr5437048lbb.12.1405001674845; Thu, 10 Jul 2014 07:14:34 -0700 (PDT) Received: by 10.114.77.193 with HTTP; Thu, 10 Jul 2014 07:14:34 -0700 (PDT) In-Reply-To: <1404990051716-4683066.post@n4.nabble.com> References: <1404990051716-4683066.post@n4.nabble.com> Date: Thu, 10 Jul 2014 07:14:34 -0700 Message-ID: Subject: Re: Activating consumer for each message groups From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=089e01161ab2bcf44204fdd7715e X-Virus-Checked: Checked by ClamAV on apache.org --089e01161ab2bcf44204fdd7715e Content-Type: text/plain; charset=UTF-8 Can you verify (JMX) that your consumer (are you using Camel? or straight DMLC from spring?) is actually creating the requisite number of consumers you're expecting? On Thu, Jul 10, 2014 at 4:00 AM, UcayaliFish wrote: > Hi, > I need some advice with message groups and I've failed to find a solution > in > the net. > What I'm doing is accepting RTP audio from several sources and converting > each RTP frame to JMS BytesMessage and sending it to ActiveMQ queue setting > JMSXGroupID property according to audio origin. I use Spring > MessageListenerContainer and MessageListener at the consumer side. I set > concurrentConsumers of the container to the supposed number of audio > sources. I expected that a separate consumer would be created/used for each > message group thus allowing to accumulate the audio data into larger > chunks, > process it and send further. Internal structure required for processing > would be bound to MessageListener instance. > Unfortunately, the container starts a single consumer that receives all > messages from all groups. I.e. the promise is kept - all messages in a > group > arrive to the same consumer instance. Actually, I just implement direct > mapping of incoming messages with the same JMSXGroupID to a separate > internal processor (through vm: queues) in a single MessageListener and it > works as expected. It just consumes quite a lot of CPU/memory and I'm not > sure it is an optimal solution whatsoever. > I'm afraid that there is a misunderstanding from my part. Is it a viable > idea to implement this kind of message routing with message groups? What > would community suggest for this type of problem? > > TIA > > Sergey > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Activating-consumer-for-each-message-groups-tp4683066.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog http://fabric8.io twitter: @christianposta --089e01161ab2bcf44204fdd7715e--