Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 60331 invoked from network); 25 Sep 2006 11:40:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Sep 2006 11:40:35 -0000 Received: (qmail 16075 invoked by uid 500); 25 Sep 2006 11:40:34 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 16061 invoked by uid 500); 25 Sep 2006 11:40:34 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 16052 invoked by uid 99); 25 Sep 2006 11:40:34 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 04:40:34 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=james.strachan@gmail.com; spf=pass Authentication-Results: idunn.apache.osuosl.org header.from=james.strachan@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.82.225 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.82.225] ([66.249.82.225:1619] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 83/24-13750-E20C7154 for ; Mon, 25 Sep 2006 04:40:30 -0700 Received: by wx-out-0506.google.com with SMTP id i27so1830250wxd for ; Mon, 25 Sep 2006 04:40:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iU+T6xHFzGKbK9GbUcwootF61JMMykF8dzSsahB7H/xFL1Sdo5KW+N6ruxP0CmimYjkyChbWwGxJgpcnSUlhQ1O0ma/S2g2+X4vifrTE+SgnuYg1oRkt1JMCMmBhH1FBngD5cDFKbd4BlnwNQhuhk3UxZTlYX0OI43Cj29XJWRI= Received: by 10.90.71.12 with SMTP id t12mr1173090aga; Mon, 25 Sep 2006 04:40:26 -0700 (PDT) Received: by 10.90.86.11 with HTTP; Mon, 25 Sep 2006 04:40:26 -0700 (PDT) Message-ID: Date: Mon, 25 Sep 2006 12:40:26 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Sender Name/ID In-Reply-To: <653849d10609230949h7b762c9ax6c388152813f73a2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4789096.post@talk.nabble.com> <653849d10609230949h7b762c9ax6c388152813f73a2@mail.gmail.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/23/06, Kelly Campbell wrote: > Hi James, this JMSXUserID feature is great, however I had a few > problems using it so I have a couple of questions and possible > enhancements for the documentation. > > I first tried to use > javax.jms.Message.getStringProperty("JMSXUserID"), but that always > returned null, so I found out that I had to cast the message and use > ActiveMQMessage.getUserId(). Hmm, thats strange - we've a test case called JmsTopicSendReceiveWithEmbeddedBrokerAndUserIDTest which uses the following code which works fine... String userID = message.getStringProperty("JMSXUserID"); I wonder can you create a test case taht fails to return the JMSXUserID? > Is that the intended usage or should you be able to get it via a > property? If not, can we add something to the JMSXUserID web page that > documents this with an example? No it should work > Also, I'll have a patch soon that fixes what looked like a problem > with the userid never getting set in the broker. It's part of a larger > patch which enhances the SSL security Sepand contributed last week. Great. Note that currently the JMSXUserID header is only set i you enable it on the BrokerService via the populateJMSXUserID flag. -- James ------- http://radio.weblogs.com/0112098/