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
<[email protected]> 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
>
>