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 501B2C688 for ; Tue, 18 Jun 2013 11:58:50 +0000 (UTC) Received: (qmail 26369 invoked by uid 500); 18 Jun 2013 11:58:49 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 26333 invoked by uid 500); 18 Jun 2013 11:58:49 -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 26307 invoked by uid 99); 18 Jun 2013 11:58:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 11:58:49 +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 (nike.apache.org: domain of christian.posta@gmail.com designates 209.85.217.177 as permitted sender) Received: from [209.85.217.177] (HELO mail-lb0-f177.google.com) (209.85.217.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 11:58:34 +0000 Received: by mail-lb0-f177.google.com with SMTP id 10so3438649lbf.22 for ; Tue, 18 Jun 2013 04:58:14 -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=4aIrxdx1dialWNVn4wo1qY6oxhJ+rIeuqNyJ5qFUTUg=; b=J/jpScIJyr6mZ0qpSKIxUD6WxixrbiuTsbt1VbslIZe1VvEqRSa/MGJIajQ8WUgAbJ ydQa1xZq+xQH7p5RXCVYH6CFgk6PdJWJh2MhhNs/KdEjfWNFFAQa2THPaRAbK2DSlB5H 59kAC3kaA2kNiT02gdEfI1sb/SKOecVMRBtMWw5vpRQnuQ7OydSr/6kb6o37BRXPjveZ i2KM+zXIKAP3hQAFKnVr3qMOmoaHeCMNZcf+QxHS2KSD7KxRbnkDsPfX96SouDOyoOOd y+dhvT7XkrdSChKFWFOrwDXibvdVnZnCeVx+xg/saUHje5RIjmwZLFYestMRkgIyiV0b Ondw== MIME-Version: 1.0 X-Received: by 10.152.5.6 with SMTP id o6mr4998342lao.48.1371556694537; Tue, 18 Jun 2013 04:58:14 -0700 (PDT) Received: by 10.114.185.37 with HTTP; Tue, 18 Jun 2013 04:58:14 -0700 (PDT) In-Reply-To: <1371544640323-4668296.post@n4.nabble.com> References: <1371544640323-4668296.post@n4.nabble.com> Date: Tue, 18 Jun 2013 07:58:14 -0400 Message-ID: Subject: Re: How to filter message in virtual destinations? From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=089e01419d1a913d8204df6c6dc3 X-Virus-Checked: Checked by ClamAV on apache.org --089e01419d1a913d8204df6c6dc3 Content-Type: text/plain; charset=ISO-8859-1 Have you looked at http://camel.apache.org/message-filter.html ? On Tue, Jun 18, 2013 at 4:37 AM, hengyunabc wrote: > My Message is TextMessage, and it's content is JSON string. > I know that use selector and filtered destinations can filter message. > http://activemq.apache.org/virtual-destinations.html > But I don't want to set the jms message property. > > I have read these pages: > http://activemq.apache.org/interceptors.html > http://activemq.apache.org/developing-plugins.html > > I alse read some source under the package > "org.apache.activemq.broker.region.virtual". > I didn't found a easy way to filter the message. > I just want to define a class with a filter function, so I can do anything > what I want. For example: > > class Myfilter implements Filter{ > public boolean doFilter(Message msg){ > ... > } > } > > Is there anybody tell me how to do it? > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/How-to-filter-message-in-virtual-destinations-tp4668296.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --089e01419d1a913d8204df6c6dc3--