Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 47363 invoked from network); 30 Nov 2009 16:44:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Nov 2009 16:44:08 -0000 Received: (qmail 79306 invoked by uid 500); 30 Nov 2009 16:44:07 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 79221 invoked by uid 500); 30 Nov 2009 16:44:06 -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 79211 invoked by uid 99); 30 Nov 2009 16:44:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 16:44:06 +0000 X-ASF-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Paul.Wilton@bbc.com designates 132.185.240.143 as permitted sender) Received: from [132.185.240.143] (HELO mailgw3.thls.bbc.co.uk) (132.185.240.143) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 16:44:03 +0000 Received: from wwlxi1004.worldwide.bbc.co.uk ([10.16.8.102]) by mailgw3.thls.bbc.co.uk (8.13.8/8.13.7) with ESMTP id nAUGgL5T023499 for ; Mon, 30 Nov 2009 16:42:21 GMT Received: from wwlxi1001.worldwide.bbc.co.uk ([10.16.8.6]) by wwlxi1004.worldwide.bbc.co.uk with Microsoft SMTPSVC(6.0.3790.1830); Mon, 30 Nov 2009 16:43:41 +0000 Received: from WWLXU1003.worldwide.bbc.co.uk ([10.16.8.9]) by wwlxi1001.worldwide.bbc.co.uk with Microsoft SMTPSVC(6.0.3790.1830); Mon, 30 Nov 2009 16:43:41 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: JMX - JAX-RS multiple service beans - only one is managed Date: Mon, 30 Nov 2009 16:43:40 -0000 Message-ID: In-Reply-To: <01b401ca71d6$fade1980$1f02050a@emea.progress.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JMX - JAX-RS multiple service beans - only one is managed Thread-Index: Acpx1v+Zq9oRKX0eSRiz893acvoUPgABPxPg References: <012c01ca6f81$e53572b0$1f02050a@emea.progress.com> <01b401ca71d6$fade1980$1f02050a@emea.progress.com> From: "Paul Wilton" To: "Sergey Beryozkin" , X-OriginalArrivalTime: 30 Nov 2009 16:43:41.0051 (UTC) FILETIME=[45C124B0:01CA71DC] I guess having per-Operation stats is much more useful and important than the separation of the root resources form the server end point. -----Original Message----- From: Sergey Beryozkin [mailto:sberyozk@progress.com]=20 Sent: 30 November 2009 16:06 To: Paul Wilton; users@cxf.apache.org Subject: Re: JMX - JAX-RS multiple service beans - only one is managed Hi Paul I'm not entirely sure yet that introducing a shared Operation interface is how CXF-2541 will be fixed, but unless other ideas emerge then we will proceed with the shared interface ...Either way CXF-2541 will=20 need to be fixed for the next release (CXF 2.2.6) which will let users see statistcis for individual operations... I'm still not sure though how to approach the issue with multiple root resources. At the moment there's one to one correspondence=20 between a CXF Service instance and a jaxrs:server endpoint. irrespectively of how many root resources the latter contains. The QName of this service is a syntesized QName of the first root resource. This is misleading so I will probably add a serviceQName attribute=20 to jaxrs:server to avoid the confusion...Still not sure though how to ensure users can see per-resource statictics with individual=20 resources attached to a single jaxrs:server endpoint - will need to investigate and may be introduce a JAXRS specific JMX=20 interceptor which will add few extra beans to the tree... cheers, Sergey Hi Sergey Do you think any of the CXF-2541 enhancements will make it into the next version? Just trying to ascertain timescales - with view to either waiting for these enhancements, or coding enhanced JAX-RS, JMX monitoring into my app myself. Thanks Paul -----Original Message----- From: Sergey Beryozkin [mailto:sberyozk@progress.com] Sent: 27 November 2009 16:52 To: users@cxf.apache.org Subject: Re: JMS - JAX-RS multiple service beans - only one is managed Hi Paul Please see comments inline with S.B. Hi I have setup JMX monitoring for my CXF JAX-RS endpoint. I have a couple of questions. 1. I have two service beans configured for one rest server: However, when I connect to the mbean server with jconsole, only the first service bean listed is being monitored. Is there something else I need to configure to make this happen or is it a bug? > S.B. It may be qualified as a bug, but the thing is a jaxrs:server is seen as a single Service at the moment, irrespective of how > many resource classes are involed...I'm not sure yet whether it will be feasible to register two CXF services in this case, one > per each root resource bean. 2. Only counters on the servicebean are being monitored. There seems to be no monitoring on jax-rs operations. Do I need to annotate the operations individually - if so do you have any examples? > S.B Please see http://issues.apache.org/jira/browse/CXF-2541, we're discussing with Cyrille how to fix it... I'm also going to look into the monitoring for multiple root beans issue thanks, Sergey Thanks Paul This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this This e-mail has been sent by one of the following wholly-owned subsidiaries of the BBC: BBC Worldwide Limited, Registration Number: 1420028 England, Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ BBC World News Limited, Registration Number: 04514407 England, Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ BBC World Distribution Limited, Registration Number: 04514408, Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ