camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Watkins <joshua.watk...@gamesys.co.uk>
Subject Re: Using CamelJmsDestinationName to publish to topics in Xml
Date Thu, 07 Apr 2011 14:12:27 GMT
That worked. Thanks!

On 07/04/2011 13:36, "Björn Bength" <bjorn.bength@gmail.com> wrote:

>Hi,
>
><route>
>   <description>test dynamicDeliveryAddress</description>
>   <from uri="activemq:queue:dynamicDelivery"/>
>   <setHeader headerName="CamelJmsDestinationName" >
>       <constant>dynamicdestinationName</constant>
>   </setHeader>
>   <to uri="activemq:topic:dummy" />
></route>
>
>worked for me once. but i was using java dsl at the time.
>
>/björn
>
>
>On Thu, Apr 7, 2011 at 2:25 PM, Joshua Watkins
><joshua.watkins@gamesys.co.uk> wrote:
>> I am trying to use the CamelJmsDestinationName header to send to a
>>topic.
>> However prepending topic: or activemq:topic: to my topic name simply
>>sends
>> reroutes the message to a queue with the name
>> "activemq:topic:dynamicdestinationName".
>>
>> Ex:
>> <route>
>>    <description>test dynamicDeliveryAddress</description>
>>    <from uri="activemq:queue:dynamicDelivery"/>
>>    <setHeader headerName="CamelJmsDestinationName" >
>>        <constant>topic:dynamicdestinationName</constant>
>>    </setHeader>
>>    <to uri="activemq:queue:didntWork" />
>> </route>
>>
>> Is there a way for me to publish to a topic using the
>> CamelJmsDestinationName in xml?
>>
>> Thanks,
>> -josh
>>
>>


Mime
View raw message