Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 99536 invoked from network); 3 Nov 2008 16:36:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2008 16:36:52 -0000 Received: (qmail 12305 invoked by uid 500); 3 Nov 2008 16:36:58 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 12283 invoked by uid 500); 3 Nov 2008 16:36:58 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 12272 invoked by uid 99); 3 Nov 2008 16:36:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 08:36:58 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 16:35:38 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Kx2Pb-0003WK-J5 for camel-user@activemq.apache.org; Mon, 03 Nov 2008 08:36:19 -0800 Message-ID: <20305976.post@talk.nabble.com> Date: Mon, 3 Nov 2008 08:36:19 -0800 (PST) From: cmoulliard To: camel-user@activemq.apache.org Subject: Re: Can Camel read an uri like this "activemq:topic:stock.*" ? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cmoulliard@gmail.com References: <20305361.post@talk.nabble.com> <20305700.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Unfortunately, removing the // does not help : jms:topic:STOCK.${in.header.stock} James.Strachan wrote: > > Try use the URI you said - jms:topic.STOCK.* rather than > jms:topic.//STOCK.* > > 2008/11/3 cmoulliard : >> >> This is strange because the following routing does not work >> >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xmlns:context="http://www.springframework.org/schema/context" >> xsi:schemaLocation=" >> http://www.springframework.org/schema/beans >> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd >> http://www.springframework.org/schema/context >> >> http://www.springframework.org/schema/context/spring-context-2.5.xsd >> http://activemq.apache.org/camel/schema/spring >> http://activemq.apache.org/camel/schema/spring/camel-spring.xsd"> >> >> >> > class="org.apache.activemq.camel.component.ActiveMQComponent"> >> > >> value="vm://localhost:61616?broker.persistent=true" /> >> >> >> >> >> > class="org.apache.camel.processor.interceptor.Tracer"> >> >> >> >> >> >> >> > class="org.apache.camel.processor.interceptor.TraceFormatter"> >> >> >> >> >> >> >> >> > class="org.apache.camel.dataformat.xstream.XStreamDataFormat" >> factory-method="processAnnotations"> >> >> >> >> > class="com.xpectis.service.common.impl.StockPriceGenerator" /> >> > class="com.xpectis.service.common.impl.StockUpdater" /> >> >> > xmlns="http://activemq.apache.org/camel/schema/spring"> >> >> >> > uri="timer:generateStockPrice?fixedRate=true&delay=10000&period=5000" >> /> >> >> >> >> //price >> >> //price/@stock >> >> >> >> jms:topic://STOCK.${in.header.stock} >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> James.Strachan wrote: >>> >>> 2008/11/3 cmoulliard : >>>> >>>> Hi, >>>> >>>> I would like to know if Camel can read an uri like this (from >>>> uri="activemq:topic:stock.*") where the star represents any topic >>>> created >>>> with the root name STOCK. ? >>> >>> Yes >>> >>> -- >>> James >>> ------- >>> http://macstrac.blogspot.com/ >>> >>> Open Source Integration >>> http://fusesource.com/ >>> >>> >> >> >> ----- >> Enterprise Architect >> >> Xpectis >> 12, route d'Esch >> L-1470 Luxembourg >> >> Phone +352 25 10 70 470 >> Mobile +352 621 45 36 22 >> >> e-mail : cmoulliard@xpectis.com >> web site : www.xpectis.com www.xpectis.com >> My Blog : http://cmoulliard.blogspot.com/ >> http://cmoulliard.blogspot.com/ >> -- >> View this message in context: >> http://www.nabble.com/Can-Camel-read-an-uri-like-this-%22activemq%3Atopic%3Astock.*%22----tp20305361s22882p20305700.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> > > > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://fusesource.com/ > > ----- Enterprise Architect Xpectis 12, route d'Esch L-1470 Luxembourg Phone +352 25 10 70 470 Mobile +352 621 45 36 22 e-mail : cmoulliard@xpectis.com web site : www.xpectis.com www.xpectis.com My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/ -- View this message in context: http://www.nabble.com/Can-Camel-read-an-uri-like-this-%22activemq%3Atopic%3Astock.*%22----tp20305361s22882p20305976.html Sent from the Camel - Users mailing list archive at Nabble.com.