Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33CB8E003 for ; Tue, 15 Jan 2013 18:00:09 +0000 (UTC) Received: (qmail 83968 invoked by uid 500); 15 Jan 2013 18:00:09 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 83930 invoked by uid 500); 15 Jan 2013 18:00:08 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 83922 invoked by uid 99); 15 Jan 2013 18:00:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 18:00:08 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.216.52 as permitted sender) Received: from [209.85.216.52] (HELO mail-qa0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 18:00:02 +0000 Received: by mail-qa0-f52.google.com with SMTP id d13so439879qak.4 for ; Tue, 15 Jan 2013 09:59:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:date:in-reply-to:references :content-type:x-mailer:content-transfer-encoding:mime-version; bh=FJ7yJDsCs1621oWrVV/Wk5Qkn/s2XsXpeXfodMgqq1Y=; b=0GEMuwEseGkTRYzCWVlusRp1O/5JUDLg5J4QetRy60TufE4KNHYCpkA4HOHE/QZbVd xrt7f/l2zU/CPAmQC9hTuYe/LLCsdX6FuYvYOiTTzg/ZYakSCZdow82zrxiw83YDc1P2 1w26BjBdHXVUFzioUDy736MMRQMeCuCbPPSscD5vz5hG1Q7gIpGW30De2Y65Fwz+jkti YsKmO33LkwNqYOIeRDISUzi+JSMzB/bei4G+TC2Ni3JumYJxeay7IiYROinmcAmKcUt2 jsqSpf+iEGYUW1lW/xnt5cjXLlxn9VjRzmvOfAPJ79P+eaoFiwR2tmeOz5mHAIZO97vW Av7Q== X-Received: by 10.224.58.69 with SMTP id f5mr50967399qah.87.1358272781330; Tue, 15 Jan 2013 09:59:41 -0800 (PST) Received: from [192.168.2.150] (c-98-231-181-148.hsd1.va.comcast.net. [98.231.181.148]) by mx.google.com with ESMTPS id z5sm11276564qer.8.2013.01.15.09.59.40 (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 15 Jan 2013 09:59:40 -0800 (PST) Message-ID: <1358272779.23752.1.camel@OfficePC> Subject: Re: Problem With BytesMessage On Version 3.5.0 From: Timothy Bish To: dev@activemq.apache.org Date: Tue, 15 Jan 2013 12:59:39 -0500 In-Reply-To: <1358270988588-4661774.post@n4.nabble.com> References: <1358270988588-4661774.post@n4.nabble.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org 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/