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 661A69A53 for ; Mon, 19 Sep 2011 22:26:19 +0000 (UTC) Received: (qmail 43291 invoked by uid 500); 19 Sep 2011 22:26:19 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 43261 invoked by uid 500); 19 Sep 2011 22:26:18 -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 43253 invoked by uid 99); 19 Sep 2011 22:26:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2011 22:26:18 +0000 X-ASF-Spam-Status: No, hits=1.1 required=5.0 tests=NO_RDNS_DOTCOM_HELO,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.145.54.172 is neither permitted nor denied by domain of areese@yahoo-inc.com) Received: from [216.145.54.172] (HELO mrout2.yahoo.com) (216.145.54.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2011 22:26:12 +0000 Received: from SP2-EX07CAS04.ds.corp.yahoo.com (sp2-ex07cas04.corp.sp2.yahoo.com [98.137.59.5]) by mrout2.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id p8JMPBnY032773; Mon, 19 Sep 2011 15:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1316471111; bh=Njf54eLy1QHuAhJiz44vZf/GE2RwRKGV+24gAqm9LCI=; h=From:To:Date:Subject:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=dHlMsXf1loZLktR/4mbQSmKg+yUkSfkuWKAYX4GKU0OpamYj+inxhiE4u/uC4WnYz H16+qiQe+M45AkvsF5hPzcRqT1uHuAUrZZApzTCwZtnPen1EHcfns+aRyPkL1R1PrA t9ns5k2lo4crvt8txJZxa3Jg8x/kq+KLETSQs4Q4= Received: from SP2-EX07VS01.ds.corp.yahoo.com ([98.137.59.29]) by SP2-EX07CAS04.ds.corp.yahoo.com ([98.137.59.5]) with mapi; Mon, 19 Sep 2011 15:25:11 -0700 From: Allen Reese To: "users@activemq.apache.org" , "joe.niski@nwea.org" Date: Mon, 19 Sep 2011 15:25:10 -0700 Subject: RE: "activemq-admin browse" and authentication Thread-Topic: "activemq-admin browse" and authentication Thread-Index: Acx3DTN1nIazTiOFTA6n/eJlHm92awADbBCA Message-ID: References: <4E77A9C1.2060706@nwea.org> In-Reply-To: <4E77A9C1.2060706@nwea.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 You will have to backport this to 5.3.2 and 5.5.=20 I had the same issue, and fixed it here: AMQ-3411 | https://issues.apache.org/jira/browse/AMQ-3411 | Admin commands = which take --amqurl should accept --user and --pass option | Allen Reese Core Platforms Yahoo!, Inc. =20 > -----Original Message----- > From: Joe Niski [mailto:joe.niski@nwea.org] > Sent: Monday, September 19, 2011 1:45 PM > To: users@activemq.apache.org > Subject: "activemq-admin browse" and authentication >=20 > in ActiveMQ 5.4.2 and 5.5, it seems that there's no way to pass > credentials to the "browse" command - i get an "unrecognized option" > error when i try to add "--user" and "--password". Our broker requires > authentication, so an administrative script i'm trying to write needs to > authenticate (so i can act on a queue based on message content). >=20 > Looking at the source for both versions, i see two classes in > org.apache.activemq.console.command - AmqBrowseCommand and > BrowseCommand. AmqBrowseCommand doesn't take user & password params, but > BrowseCommand does. It seems that activemq-admin is invoking > AmqBrowseCommand (and, on the source trunk, i see that options for > username and password have been added). >=20 > Is there a way to invoke BrowseCommand from the operating system shell > in AMQ 5.4.2 and 5.5? > -- >=20 > *Joe Niski* > Senior Developer - Information Services | NWEA(tm) >=20 > PHONE 503.548.5207 | FAX 503.639.7873 >=20 > NWEA.ORG | Partnering to help all kids learn(tm)