From users-return-8418-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Thu Apr 05 17:07:52 2007 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 29747 invoked from network); 5 Apr 2007 17:07:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Apr 2007 17:07:51 -0000 Received: (qmail 68105 invoked by uid 500); 5 Apr 2007 17:07:57 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 68086 invoked by uid 500); 5 Apr 2007 17:07:57 -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 68076 invoked by uid 99); 5 Apr 2007 17:07:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2007 10:07:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2007 10:07:49 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HZVQn-0006LG-2S for users@activemq.apache.org; Thu, 05 Apr 2007 10:07:29 -0700 Message-ID: <9859793.post@talk.nabble.com> Date: Thu, 5 Apr 2007 10:07:28 -0700 (PDT) From: cmaxo To: users@activemq.apache.org Subject: activemq-cpp setStringProperty MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cmaxo@engineer.com X-Virus-Checked: Checked by ClamAV on apache.org I'm trying to set the JMSXGroupID on a text message using c++. Whenever I set this property I get an IllegalArgumentException thrown b/c this property is a pre-defined header. Is there another way that I should be setting the groupid for a message? Here is a sample of what I'm trying to do: TextMessage* textMessage = session->createTextMessage("hello"); textMessage->setStringProperty("JMSXGroupID", "1234"); I looked in the source code in StompMessage.h and the implementation of setStringProperty first calls a function called testProperty. testPropety checks to see if the name of the property is predefined. So, I'm thinking that I need to set the value of the header in some other way but I can't seem to figure out how. If anyone could tell me how to set this up so that I can use message groups correctly I would greatly appreciate it. corey -- View this message in context: http://www.nabble.com/activemq-cpp-setStringProperty-tf3532714s2354.html#a9859793 Sent from the ActiveMQ - User mailing list archive at Nabble.com.