RE: problems reading a cms::BytesMessage.

2009-03-26 Thread Timothy Bish
On Thu, 2009-03-26 at 17:55 +0100, Eduardo Montoya wrote: > Hello, I have upgraded to the new 2.2.5 version of activemq-cpp > > but when I receive a bytesmessage within onMessage listener method, > I get the following error: > > < 836> 26 March 2009 05:34:55 PM[ERROR] - at [.\MyDispatcher.cpp

RE: problems reading a cms::BytesMessage.

2009-03-26 Thread Eduardo Montoya
ctivemq.apache.org > Subject: RE: problems reading a cms::BytesMessage. > Date: Fri, 20 Feb 2009 09:33:09 +0100 > > > Hi Tim, > > > > thanks for your answer. > > > > in fact, as a workaround I did clone the message, but even if I deleted the > cloned me

RE: problems reading a cms::BytesMessage.

2009-02-20 Thread Eduardo Montoya
verify if there is any reason why the message is not passed ready to be read. thanks again, Regards, Eduardo > Subject: Re: problems reading a cms::BytesMessage. > From: tabish...@gmail.com > To: users@activemq.apache.org > Date: Thu, 19 Feb 2009 14:24:21 -0500 > &

Re: problems reading a cms::BytesMessage.

2009-02-19 Thread Timothy Bish
On Thu, 2009-02-19 at 19:06 +0100, Eduardo Montoya wrote: > Hello, > > I have some problems when reading a cms::BytesMessage. > > first of all, my client code looks like: > > void MyMessageListener::onMessage( const Message* message ) > { > const BytesMessage* b = dynamic_cast( message ); >

problems reading a cms::BytesMessage.

2009-02-19 Thread Eduardo Montoya
Hello, I have some problems when reading a cms::BytesMessage. first of all, my client code looks like: void MyMessageListener::onMessage( const Message* message ) { const BytesMessage* b = dynamic_cast( message ); if (b != NULL) { std::size_t len = b->getBodyLength(); // thi