Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A255D580 for ; Fri, 24 Aug 2012 13:16:52 +0000 (UTC) Received: (qmail 16412 invoked by uid 500); 24 Aug 2012 13:16:52 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 16373 invoked by uid 500); 24 Aug 2012 13:16:51 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 16364 invoked by uid 99); 24 Aug 2012 13:16:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2012 13:16:51 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcjau-user-2@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2012 13:16:44 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T4tkJ-0003dy-2H for users@activemq.apache.org; Fri, 24 Aug 2012 15:16:19 +0200 Received: from 109.70.145.138 ([109.70.145.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Aug 2012 15:16:19 +0200 Received: from nospam.1.friedbadger by 109.70.145.138 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Aug 2012 15:16:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@activemq.apache.org From: spam trap Subject: ActiveMQ-CPP question Date: Fri, 24 Aug 2012 14:15:32 +0100 Lines: 8 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 109.70.145.138 X-Newsreader: Forte Agent 3.3/32.846 User-Agent: Hamster/2.1.0.11 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am using ActiveMQ-CPP to consume messages asynchronously. In my onMessage() method can I refer to the cms::Message object directly? All the examples show this being casted to another type (eg. BytesMessage). Some messages may not have payloads so I am not sure what exact type to use for these.