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 A1AECEE8F for ; Fri, 15 Mar 2013 16:02:51 +0000 (UTC) Received: (qmail 24378 invoked by uid 500); 15 Mar 2013 16:02:51 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 24150 invoked by uid 500); 15 Mar 2013 16:02:49 -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 24128 invoked by uid 99); 15 Mar 2013 16:02:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 16:02:49 +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.219.46 as permitted sender) Received: from [209.85.219.46] (HELO mail-oa0-f46.google.com) (209.85.219.46) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 16:02:43 +0000 Received: by mail-oa0-f46.google.com with SMTP id k1so3567246oag.5 for ; Fri, 15 Mar 2013 09:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=MVs9jIRQhPelFgZefLLQhq9KkksvZWSVZ96XF1Z02d0=; b=PDt+68IVyPgMIM+uGlprvGv9funXuDRJFkkP7nmnbBY/VCxvQj0A7W6ck428ShkZuU ry+C8ssXHz5E7wER2xzP/o4DVF8Ev38HO4vJWVY6vAnoImAj/zREmnJbR1ecdndIrTRG AxOOdwonXJne0MrJ4F3MUq2tFzOhopD0CadcAdH3eOqKlPFGFfLIVjnFzjnEnBdWxAaJ 2JUXDU7gtzofvF0XuokliIamiiasT5ABD4vMhF5QH6KtD+sAQ05ivQdxpScwIv5m5ygq ys3hQezL8wouinHfJZL2cnO1IV1CeADpjN901zjKmmpj0tfT+1rNWM5fW8fTsd1cwSvu Tv+Q== X-Received: by 10.182.223.34 with SMTP id qr2mr3165016obc.58.1363363341992; Fri, 15 Mar 2013 09:02:21 -0700 (PDT) Received: from [192.168.2.150] (c-98-218-173-79.hsd1.va.comcast.net. [98.218.173.79]) by mx.google.com with ESMTPS id ad19sm2480424oec.0.2013.03.15.09.02.21 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Mar 2013 09:02:21 -0700 (PDT) Message-ID: <5143460C.9060703@gmail.com> Date: Fri, 15 Mar 2013 12:02:20 -0400 From: Timothy Bish User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: ACtiveMQ CMS and JMSXUserID property References: <1363362807001-4664762.post@n4.nabble.com> In-Reply-To: <1363362807001-4664762.post@n4.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 03/15/2013 11:53 AM, mikmela wrote: > Java implementation (5.6.0) does something special for this property > > /public String getStringProperty(String name) throws JMSException { > Object value = null; > if (name.equals("JMSXUserID")) { > value = getUserID(); > if (value == null) { > value = getObjectProperty(name); > } > } else { > value = getObjectProperty(name); > } > .../ > but CMS (3.6.0 and below) does not... What's the way then to get the > authenticated username of the sender of a message? > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/ACtiveMQ-CMS-and-JMSXUserID-property-tp4664762.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > Create a test case and open a Jira issue if you want a fix. Cast the Message to the activemq::commands::Message type and call getUserID directly -- 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/