Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 40411 invoked from network); 12 Oct 2010 19:02:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Oct 2010 19:02:00 -0000 Received: (qmail 90327 invoked by uid 500); 12 Oct 2010 19:02:00 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 90289 invoked by uid 500); 12 Oct 2010 19:02:00 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 90281 invoked by uid 99); 12 Oct 2010 19:01:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 19:01:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of techhusky@gmail.com designates 209.85.161.46 as permitted sender) Received: from [209.85.161.46] (HELO mail-fx0-f46.google.com) (209.85.161.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 19:01:53 +0000 Received: by fxm4 with SMTP id 4so1746480fxm.33 for ; Tue, 12 Oct 2010 12:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=n3FXPf5hx6QEn0N0+S/Lb36EgleT09HtFal6EhXzx6g=; b=sep+WaYY8/+8nzBG3tLEJzMAuEvEBIrbY+VNr8POGgVe+53kwDiENW4ZYrMvp16dEM mioY6cwz9XjgujlF7sRTm1z0iXqcNAsqUpMdnEC2vYenMA59Y6C2bnqcgsmcFZxvEJzj MT6AmC+ouDWGBikFAz+r9KPa7Y1dUjFgg6C8I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=GZovpXtGNzddf9WCpYiGFcBic0usy3lvh7GsDPD3n0VP5mjRn/+OKOOU8Bi2N/GEUa AIni2BV2vjx6jBATzxdQqIU6mWlcYQsXvnuGyqzuftRIxQnQSji4csccpHy1jmmPjh0i 3oc8wId2KyzNlYHPBFPLI093CCHHcTowsrHu8= MIME-Version: 1.0 Received: by 10.239.153.145 with SMTP id z17mr560798hbb.5.1286910093060; Tue, 12 Oct 2010 12:01:33 -0700 (PDT) Received: by 10.239.172.15 with HTTP; Tue, 12 Oct 2010 12:01:33 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Oct 2010 14:01:33 -0500 Message-ID: Subject: Re: Compiling a JConsole plugin From: Jeremy Bauer To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=001485f79286f46cde0492701a6e X-Virus-Checked: Checked by ClamAV on apache.org --001485f79286f46cde0492701a6e Content-Type: text/plain; charset=ISO-8859-1 Hi Rick, I started on a similar undertaking with JConsole after adding the initial JMX support. Perhaps we can merge the two efforts at some point. I have the beginnings of a simple call framework over JMX that also allows one to easily plug calculated attributes (cache hit rate, etc.) into the instrumentation query, abstracting that logic from the rendering layer. My plan was to add the plugin under the tools side of the repo. I ended up creating a pom that picked up the necessary dependency from the local JDK/SDK. Unfortunately, I don't have the pom handy. It is on a remote machine that is powered down at the moment. I'll post it tomorrow. IIRC, The dependency looked *something* like this, but was more OS + JDK path smart/friendly... com.sun jconsole 1.6 system C:/Program Files/Java/jdk1.6.0_21/lib/jconsole.jar Also, if you happen to be having problems debugging a jConsole plugin from Eclipse, I blogged about it a while back. http://techhusky.blogspot.com/2010/08/debugging-jconsole-plugins-from-eclipse.html -Jeremy On Tue, Oct 12, 2010 at 1:31 PM, Rick Curtis wrote: > I wrote a small proof-of-concept jconsole[1] plugin that can display > DataCache statistics. To write the custom plugin[2][3] I had to extend > com.sun.tools.jconsole.JConsolePlugin which exists in > [java_home]/lib/jconsole.jar on both IBM and Sun JDKs. For my first pass I > manually added that jar to my classpath, but how do I get the OpenJPA build > to do the same? > > [1] http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html > [2] http://filebin.ca/swset/jconsole.jpg > [3] http://filebin.ca/atogum/jconsole_plugin.patch > > Thanks, > Rick > --001485f79286f46cde0492701a6e--