activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Problem With BytesMessage On Version 3.5.0
Date Tue, 15 Jan 2013 17:59:39 GMT
On Tue, 2013-01-15 at 09:29 -0800, jorge.medra wrote: 
> Hi, I was working ActiveMQ 3.4.5 and i made the upgrade to ActiveMQ 3.5.0,
> but the problem is at the moment of reciving BytesMessage. On version 3.4.5
> its working but on 3.5.0 doest't work.
> 

So, what doesn't work?  Can't really answer without knowing what the
problem is.  If you have a unit test you can open a Jira issue.

> Here the code:
> 
>             const TextMessage* textMessage = dynamic_cast< const
> TextMessage* >( message );
>             const BytesMessage* bytetMessage = dynamic_cast< const
> BytesMessage* >( message );
>             
>             string text = "";
>             
>             if( textMessage != NULL ) {
>                 text = textMessage->getText();
>                 std::cout << "Message " << count << " Received: " <<
> text.c_str() << endl;
>             }
>             else if( bytetMessage != NULL ) {
>                 
>                 int size = bytetMessage->getBodyLength();
>                 
>                 std::cout << "BYTES RECIVIDOS: " << size << endl;
>                  
>                 ...
> 
>                 unsigned char* in = new unsigned char[size];
> 
>                 memccpy(in, bytetMessage->getBodyBytes(),0, size);
>                 
>                 ...
>                 
>             }
>             
>             if( clientAck ) {
>                 message->acknowledge();
>             }
> 
> 
> The same code work with version 3.4.5 but not in 3.5.0.
> 
> Will there an upgrade to this issue?
> 
> Thanks.
> 
> 
> 
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Problem-With-BytesMessage-On-Version-3-5-0-tp4661774.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com 
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message