On Thu, Aug 16, 2012 at 9:22 AM, zuff <bhtan1...@live.com> wrote:
> Hi,
>
>
>      I need some additional help. I now need to send a reply back without
> having access to the original Exchange, as the current scenario happened
> after some processing by an external source.
>
>
>     how do I send a reply back to the temp-topic if the temp topic name
> generated is something like
>
> ID:zuff-xxxxxxxxx-xxx-1:1:1
>

You may be able to specify the destination name in a header, see
section _Reuse endpoint and send to different destinations computed at
runtime_ at
http://camel.apache.org/jms

And then use sendBodyAndHeader on the producer template to pass in the
header as well.

The key for the header to use is: CamelJmsDestinationName


And mind that a temporary topic may not be visible when you sen the
message. To my understanding the temp topic/queue is only available in
memory and for the same JMSSession. But give it a try and see where
you are.

Also maybe you can configure the strategy how temporary names is
generated to avoid having colons and other chars.



> i tried with
> template.sendBody(weblogc://temp-topic:ID:zuff-xxxxxxxxx-xxx-1:1:1, myObj)
> without success.
> howver if i changed it to  template.sendBody(weblogc://topic:myTopic:ABC,
> myObj) it work.
>
> if the : causing some issue with the uri ?
>
> Best Regards,
> Zuff
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Issue-with-temporary-topic-tp5716869p5717477.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to