Re: CMS: Cloning a Message

2009-06-03 Thread nmittal
Understood. Thanks Tim. Timothy Bish wrote: > > On Wed, 2009-06-03 at 12:49 -0700, nmittal wrote: >> thanks. So could I do something like this... >> void *cloneMessageProperties(void *src_msg) { >> Message *msg = ((Message *)src_msg)->clone(); >> msg->clearBody(); >> return msg;

Re: CMS: Cloning a Message

2009-06-03 Thread Timothy Bish
On Wed, 2009-06-03 at 12:49 -0700, nmittal wrote: > thanks. So could I do something like this... > void *cloneMessageProperties(void *src_msg) { > Message *msg = ((Message *)src_msg)->clone(); > msg->clearBody(); > return msg; > } > > Timothy Bish wrote: > > > > On Wed, 2009-06

Re: CMS: Cloning a Message

2009-06-03 Thread nmittal
thanks. So could I do something like this... void *cloneMessageProperties(void *src_msg) { Message *msg = ((Message *)src_msg)->clone(); msg->clearBody(); return msg; } Timothy Bish wrote: > > On Wed, 2009-06-03 at 12:24 -0700, nmittal wrote: >> Hi, is there a function

Re: CMS: Cloning a Message

2009-06-03 Thread Timothy Bish
On Wed, 2009-06-03 at 12:24 -0700, nmittal wrote: > Hi, is there a function to copy all properties in a message to a new one. > > thanks > Nishant No, you can clone an entire Message with the clone method, but there's not a specific method for just copying properties. Regards Tim -- Tim Bish

CMS: Cloning a Message

2009-06-03 Thread nmittal
Hi, is there a function to copy all properties in a message to a new one. thanks Nishant -- View this message in context: http://www.nabble.com/CMS%3A-Cloning-a-Message-tp23857727p23857727.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.