activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: ActiveMQ-CPP: how to send to temp queue?
Date Thu, 16 Jul 2009 15:06:05 GMT
On Thu, 2009-07-16 at 07:46 -0700, Ivan Pechorin wrote:
> > Actually its not nearly as hard as all that.  Each of the Destination
> > classes in CMS extends from cms::Destination which defines a clone
> > method.  When you receive a message that has a replyTo destination you
> > can simply clone the destination and use the new instance you created to
> > create a new producer for that destination or you can use an existing
> > producer and call one of the send methods that takes a Destination as an
> > argument.
> Thanks a lot, Tim. 
> Can I store clone()'ed destination and use it in different session or even
> in a session in different connection?
> Best regards, Ivan

You should be okay doing that, if it blows up let us know.


View raw message