Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28CCFBD00 for ; Fri, 6 Jan 2012 09:58:37 +0000 (UTC) Received: (qmail 45245 invoked by uid 500); 6 Jan 2012 09:58:36 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 44977 invoked by uid 500); 6 Jan 2012 09:58:28 -0000 Mailing-List: contact dev-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 dev@activemq.apache.org Received: (qmail 44959 invoked by uid 99); 6 Jan 2012 09:58:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2012 09:58:23 +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 chubrilo@gmail.com designates 74.125.82.41 as permitted sender) Received: from [74.125.82.41] (HELO mail-ww0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2012 09:58:19 +0000 Received: by wgbdt12 with SMTP id dt12so1435135wgb.2 for ; Fri, 06 Jan 2012 01:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=fVdVdHhGLc66C/FoFiHeHsfs0zchdvjklW69o/W66oI=; b=EghvERLmtFPluw5ZE545XBZsKupa8P4OdL57Hty/O+/tdo+pCKgOFaM+ecoZZTUbFz YfmhqHbWy1/Z2tZE1STeitlopPf9aVICNNgiCMzjeE41b1bWeucqhO7Y8BIhuGOzATR6 hYbzOSuYu4rWcEA/AuyXlRvk6FfZlOelo9Zhs= MIME-Version: 1.0 Received: by 10.180.88.229 with SMTP id bj5mr6069293wib.5.1325843878214; Fri, 06 Jan 2012 01:57:58 -0800 (PST) Sender: chubrilo@gmail.com Received: by 10.223.93.144 with HTTP; Fri, 6 Jan 2012 01:57:58 -0800 (PST) In-Reply-To: <1325794246403-4266841.post@n4.nabble.com> References: <1325794246403-4266841.post@n4.nabble.com> Date: Fri, 6 Jan 2012 10:57:58 +0100 X-Google-Sender-Auth: SpPN5ZXIkLmuTH0cVzqJMINE8UA Message-ID: Subject: Re: Filtering by Message subtype (e.g. TextMessage, MapMessage) From: Dejan Bosanac To: dev@activemq.apache.org Content-Type: multipart/alternative; boundary=f46d04426740637aba04b5d91526 --f46d04426740637aba04b5d91526 Content-Type: text/plain; charset=ISO-8859-1 Didn't try it but you can see if you can set selector against "JMSXMimeType" which is available for ActiveMQ messages and text message has value "jms/text-message" for example. If not, and you control producer side you can set different JMSType on different type of messages when you're sending them and filter on that Regards -- Dejan Bosanac - http://twitter.com/dejanb ----------------- The experts in open source integration and messaging - http://fusesource.com ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Thu, Jan 5, 2012 at 9:10 PM, io42 wrote: > Is it possible for a consumer to filter incoming messages based on the > message sub-type (e.g. Only receive MapMessage objects and TextMessage > objects from a queue, but not any StreamMessage objects that are on that > queue)? If so, how? > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Filtering-by-Message-subtype-e-g-TextMessage-MapMessage-tp4266841p4266841.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. > --f46d04426740637aba04b5d91526--