Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 22329 invoked from network); 10 Feb 2011 22:12:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Feb 2011 22:12:35 -0000 Received: (qmail 89057 invoked by uid 500); 10 Feb 2011 22:12:34 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 88960 invoked by uid 500); 10 Feb 2011 22:12:34 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 88952 invoked by uid 99); 10 Feb 2011 22:12:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 22:12:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sberyozkin@gmail.com designates 209.85.214.41 as permitted sender) Received: from [209.85.214.41] (HELO mail-bw0-f41.google.com) (209.85.214.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 22:12:30 +0000 Received: by bwz16 with SMTP id 16so2588921bwz.0 for ; Thu, 10 Feb 2011 14:12:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=hafJ59qT3qKglZk4WEj0miIOwoBGJSMizt+L2tNdnRY=; b=t/Ihqv2IqDT/KuJDJD/sFkQtEzfuNcegvZFOxsjpV+E18rMSD9qd08pEfhg34sIS0g Qrk/BZ3x/HRfqyw1HTWQeQ7WYr/XBfN5/VDgHQrmGt3uoXsmYD71xiseeMxJRjUpL+nE mA05h1ycb5dFdVklIAGs72E0e3LU14wQ0KNuk= 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:content-transfer-encoding; b=si/SXtPph261kpihX9hzDhg7cTbqtodAM4tnXgfCAvAq3V9nq1HeWZWxNE7LKvBwGi sHlQ2RIMeaHgzmk0SpmWpqNyuLGJjI75Z20Gmn9tQm8IBtmvwJfwni6EjphH88BMhF2h 2a0j/0jguQCZgT+s5T1Q6zTrev4FiJhH4uqNw= MIME-Version: 1.0 Received: by 10.204.58.196 with SMTP id i4mr5828964bkh.119.1297375928131; Thu, 10 Feb 2011 14:12:08 -0800 (PST) Received: by 10.204.61.78 with HTTP; Thu, 10 Feb 2011 14:12:07 -0800 (PST) In-Reply-To: <2443D95470D8D8449B8CF1984400858702600EDC@exchange2.corp.ebates.com> References: <2443D95470D8D8449B8CF1984400858702600EDA@exchange2.corp.ebates.com> <2443D95470D8D8449B8CF1984400858702600EDC@exchange2.corp.ebates.com> Date: Thu, 10 Feb 2011 22:12:07 +0000 Message-ID: Subject: Re: MBeans, get your MBeans From: Sergey Beryozkin To: users@cxf.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for the links. Shipping a JAX-RS resource doing whatever mapping we agree upon between MBeans and HTML/JSON/XML seems promising. This resource can be deployed as part of the custom Application alongside with other root resources, and/or as a standalone JAX-RS application, when say JAX-WS endpoints are being managed. We would not even has to start embedding HTML views into the browser, this can be done later. Ultimately we can have many tabs, one for logs, one for MBean-based statistics and may be operations, one for showing the exchanges recorded with the help of PersistIn/OutInterceptors, etc... Benson, Ian, can it be of interest to you ? Cheers, Sergey On Wed, Feb 9, 2011 at 11:41 PM, Jason Chaffee wrote: > Here is another one. > > http://www.jolokia.org/ > > Jason > > > -----Original Message----- > From: Jason Chaffee [mailto:jchaffee@ebates.com] > Sent: Wed 2/9/2011 2:48 PM > To: users@cxf.apache.org; users@cxf.apache.org > Subject: RE: MBeans, get your MBeans > > There are several people working on REST for JMX. =A0See the links below. > > http://blogs.sun.com/jmxnetbeans/entry/restful_access_to_jmx_instrumentat= ion > > http://esme.apache.org/jmx-rest-api.html > > http://code.google.com/p/polarrose-jmx-rest-bridge/ > > http://stackoverflow.com/questions/1571600/is-there-any-jmx-rest-bridge-a= vailable > > > Jason > > -----Original Message----- > From: Sergey Beryozkin [mailto:sberyozkin@gmail.com] > Sent: Wed 2/9/2011 1:58 PM > To: users@cxf.apache.org > Subject: Re: MBeans, get your MBeans > > Hi > > On Wed, Feb 9, 2011 at 8:53 PM, Ian Helmke wrote: >> Basically what this boils down to is that we'd like to generate some >> MBeans to define our management interface, and create a web front-end >> for them - that way we have a nice interface for ourselves but we also >> allow for others to use whatever MBeans management interface they want >> (which is ideal if they're using something else already to manage >> other MBean-managed java software). The issue is that the MBeans API >> seems primarily reflective and from what I've been able to glean from >> reading up on it, it would take an equal or lesser amount of work to >> create a generic JSON -> MBean interface and a web front-end that way >> vs. crafting a custom, software-specific solution. >> >> One could imagine running a small java/JAX-RS program locally on any >> machine with MBeans to monitor which exposes some kind of JSON -> >> MBean API, which a web front-end could then query and present >> interesting information from. >> > > What do you think about shipping a JAX-RS resource with say > @Path("/manage") in the rt/management-web ? > This resource can be deployed as a JAX-RS endpoint, in-process with > the CXF server and will be configured with the address(es) or ids of > jaxws/jaxrs endpoints. Internally it will connect to endpoint-specific > MBeans ? > > cheers, Sergey > >> On Wed, Feb 9, 2011 at 2:58 PM, Benson Margulies = wrote: >>> Ian is now prepared to correct my slightly warped presentation of our >>> motivation, as soon as I send this for him to reply to. >>> >>> >>> On Wed, Feb 9, 2011 at 2:06 PM, Benson Margulies wrote: >>>> The MBean client API is kind of a pain in the neck. Talking RMI to >>>> contact MBean servers on multiple machines is a really big pain in the >>>> neck. >>>> >>>> If you were sitting down to create a webapp to visualize some >>>> management data, you would perhaps rather write that code in terms of >>>> a JSON-ish data model of the data. than in terms of the MBean API. >>>> >>>> So, our thought was to solve both problems: get rid of the RMI >>>> business by having a service on each machine that exposed the data via >>>> JAX-RS, and be able to code to a less annoying data model. >>>> >>>> One of my colleagues is likely to post some more specific thoughts >>>> about what he hates about the MBean API. >>>> >>> >> >