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 6E1C3DD56 for ; Thu, 29 Nov 2012 20:39:13 +0000 (UTC) Received: (qmail 59149 invoked by uid 500); 29 Nov 2012 20:39:12 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 59125 invoked by uid 500); 29 Nov 2012 20:39:12 -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 59117 invoked by uid 99); 29 Nov 2012 20:39:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 20:39:12 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 209.85.219.43 as permitted sender) Received: from [209.85.219.43] (HELO mail-oa0-f43.google.com) (209.85.219.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 20:39:08 +0000 Received: by mail-oa0-f43.google.com with SMTP id k1so15672206oag.2 for ; Thu, 29 Nov 2012 12:38:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6yG2D6XGpFlD+Hy+/lE/YstZDlKZtQr8yd2d/38pdV8=; b=VVxck4UGLCfPVcgNJB+lvi16ZfyZXLpl9WeLjvjEigqY9yjLAh1JyFms+nlpY87oJJ s328AhP/VhyWtv+pzdkIdpZMBJpD/axYW5gsL1smjLZg4DH6ylPq7nWo3xzmpDnGaSk5 lKfH+RAKWdHaeqZCiCBH0tE19YjFiEAuD6WRQGU2SlCZ3AUWsDeIJT3MjIa7W6e24jJc Kjsv9dxQLV5Yke1K3nteBIiNGNb6e2WEsz2mHVt2Aa7cqvJhHeZ/46EqfjIFdmOiAP1g xEJoDXtoGKD38KQxlfwzP4+ZCqQulDYhxT+MSzTzGKLNtpPECgu5+KET/bfzVlbHcaVF ryRQ== MIME-Version: 1.0 Received: by 10.60.32.147 with SMTP id j19mr2802065oei.68.1354221527382; Thu, 29 Nov 2012 12:38:47 -0800 (PST) Received: by 10.76.82.162 with HTTP; Thu, 29 Nov 2012 12:38:47 -0800 (PST) In-Reply-To: <1354209689044-4659946.post@n4.nabble.com> References: <8B09E4BC9CCF0C408293D73FC4BCE006268630@VOO-EXCHANGE08.internal.sungard.corp> <8B09E4BC9CCF0C408293D73FC4BCE006268633@VOO-EXCHANGE08.internal.sungard.corp> <3D8F3AEA-A3AD-4C51-AB65-8F007C8461FC@gmail.com> <1354209689044-4659946.post@n4.nabble.com> Date: Thu, 29 Nov 2012 20:38:47 +0000 Message-ID: Subject: Re: ActiveMQ.Advisory.Connection messages includes username and password From: Gary Tully To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=e89a8fb1f506163c4c04cfa8452a X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb1f506163c4c04cfa8452a Content-Type: text/plain; charset=ISO-8859-1 Am thinking that the fix for http://issues.apache.org/activemq/browse/AMQ-2335 should just whack the password. leaking or providing the user in the advisory is probally ok. When logging connection info commands we just remove or replace with "****" the password. https://issues.apache.org/jira/browse/AMQ-2499 On 29 November 2012 17:21, prgtrdr wrote: > Rob, > > I'm stuck on something that is probably obvious but I just can't figure out > how to do it. > > What I want to do is retrieve the userName from an incoming Stomp > connection. I am creating the broker in my code and have also set up > monitoring Advisory messages. The onMessage function receives the > ConnectionInfo message but the userName and password are deleted from the > message. My guess is to get at the userName I have to somehow lookup the > Connection object based on the ConnectionId contained in the Advisory > ConnectionInfo message, then I can get the userName from the Connection. > > Is that right? Or is there an easier way? If it's right, how do I lookup > the Connection object? > > Thanks, > Bill > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/ActiveMQ-Advisory-Connection-messages-includes-username-and-password-tp2365496p4659946.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- http://redhat.com http://blog.garytully.com --e89a8fb1f506163c4c04cfa8452a--