Re: Questions about getCMSReplyTo

2008-12-07 Thread Sodan
all works fine! thanx Søren Timothy Bish wrote: > > On Fri, 2008-12-05 at 07:06 -0800, Sodan wrote: >> So if I do >> Message *clone = message->clone(); >> and then later (out of scope) clone the dest, >> then that should be safe also, right ? >> >> thanx >> Søren > > Yes, all clone operatio

Re: Questions about getCMSReplyTo

2008-12-05 Thread Timothy Bish
On Fri, 2008-12-05 at 07:06 -0800, Sodan wrote: > So if I do > Message *clone = message->clone(); > and then later (out of scope) clone the dest, > then that should be safe also, right ? > > thanx > Søren Yes, all clone operations in ActiveMQ-CPP perform deep copies, so anything you clone you can

Re: Questions about getCMSReplyTo

2008-12-05 Thread Sodan
So if I do Message *clone = message->clone(); and then later (out of scope) clone the dest, then that should be safe also, right ? thanx Søren Timothy Bish wrote: > > Yes, anything you clone is now yours to delete. > > > On Fri, 2008-12-05 at 06:11 -0800, Sodan wrote: >> ok, it seems that

Re: Questions about getCMSReplyTo

2008-12-05 Thread Timothy Bish
Yes, anything you clone is now yours to delete. On Fri, 2008-12-05 at 06:11 -0800, Sodan wrote: > ok, it seems that I need to > cms::Destination *clone = cmsdst->clone(); > and then later when done, I can delete the clone... > > right ? > > > > Sodan wrote: > > > > So I get a message and cre

Re: Questions about getCMSReplyTo

2008-12-05 Thread Sodan
yep, but what about provider string... why does that not work ? Timothy Bish wrote: > > On Fri, 2008-12-05 at 05:03 -0800, Sodan wrote: >> So I get a message and create a producer based on the destination >> const cms::Destination *cmsdst = map->getCMSReplyTo(); >> session->createProducer

Re: Questions about getCMSReplyTo

2008-12-05 Thread Sodan
ok, it seems that I need to cms::Destination *clone = cmsdst->clone(); and then later when done, I can delete the clone... right ? Sodan wrote: > > So I get a message and create a producer based on the destination > const cms::Destination *cmsdst = map->getCMSReplyTo(); > session->create

Re: Questions about getCMSReplyTo

2008-12-05 Thread Timothy Bish
On Fri, 2008-12-05 at 05:03 -0800, Sodan wrote: > So I get a message and create a producer based on the destination > const cms::Destination *cmsdst = map->getCMSReplyTo(); > session->createProducer(cmsdst); > which works fine. > > The thing is that I dont need to reply instantly back, when I