Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 34951 invoked from network); 20 Jan 2010 11:00:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2010 11:00:26 -0000 Received: (qmail 57750 invoked by uid 500); 20 Jan 2010 11:00:25 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 57681 invoked by uid 500); 20 Jan 2010 11:00:25 -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 57671 invoked by uid 99); 20 Jan 2010 11:00:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 11:00:25 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fred.moore77@gmail.com designates 209.85.220.228 as permitted sender) Received: from [209.85.220.228] (HELO mail-fx0-f228.google.com) (209.85.220.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 11:00:19 +0000 Received: by fxm28 with SMTP id 28so3108871fxm.6 for ; Wed, 20 Jan 2010 02:59:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=s0AkHi11u8rhnMfNNpp5lf5gPG4ttmqlbfWdtYgE0AY=; b=RMN4I7Zotfe3T+haZpkXbJxXoOhVc+B76BM6jCp/fSxVa+t7ULJvvp0nZwPZ48/VTJ uTO6dDYC4nyIoDS4uwpnXMkrPFCOkHRXhpzzMdnslSKtILzkjdjV+vZzFlz3s3I5NYqa 30uB6Vj6KG7/ZZzlw3m5P90DIvaQvmuLj2Df0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NDGSXOOk9HUat9MG+p85W6wk6PrURx7b9XhTqvXfcoHULwzg3l767I7K4RR4Ee6MqC e/dsuSvzRTTpXwmMHCN3fWndqZi5C4giP0mso4TYAxQPe3pKS0/9oI8ZPpHGjp58cu9e feYvLbVBUbKyuLwCAKSUZ7QaoxqafrU3b5JAM= MIME-Version: 1.0 Received: by 10.223.14.141 with SMTP id g13mr10506815faa.54.1263985196567; Wed, 20 Jan 2010 02:59:56 -0800 (PST) Date: Wed, 20 Jan 2010 11:59:56 +0100 Message-ID: <69b2d60e1001200259y5f5c2cdbq98cdeb7fdf5dd2a4@mail.gmail.com> Subject: Any publicly available code to create human readable dumps of broker internal state and queue contents? From: Fred Moore To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001517477f1ea48d85047d967cbf --001517477f1ea48d85047d967cbf Content-Type: text/plain; charset=ISO-8859-1 Hi folks, after having embededded an ActiveMQ broker into our application, we wanted to provide simple command line use cases to help problem determination/troubleshooting, things like: 1\ Dumping the broker internal state (just dumping MBeans attributes should suffice) to a text file 2\ Dumping header & body of each message in a queue to a text file I'm assuming this is a very common requirement: can anyone suggest pointers to code that we can reuse? Cheers, F. PS: ...the underlying assumption here is that troubleshooting cannot be performed via interactive "observation" of the system, e.g. by a user using tools such as JConsole and HermesJMS, because of deploy constraints or insufficient user skills. --001517477f1ea48d85047d967cbf--