Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 68750 invoked from network); 24 Mar 2009 11:39:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2009 11:39:10 -0000 Received: (qmail 32161 invoked by uid 500); 24 Mar 2009 11:39:10 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 32059 invoked by uid 500); 24 Mar 2009 11:39:10 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 32051 invoked by uid 99); 24 Mar 2009 11:39:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2009 11:39:09 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yarc@fastmail.fm designates 66.111.4.26 as permitted sender) Received: from [66.111.4.26] (HELO out2.smtp.messagingengine.com) (66.111.4.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2009 11:39:00 +0000 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 7FD5A2F9ACB for ; Tue, 24 Mar 2009 07:38:38 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 24 Mar 2009 07:38:38 -0400 X-Sasl-enc: lktkYAsFFVD0yatBmLFzJFIf8t+uor6x1Az8hdhw5+Or 1237894718 Received: from [192.168.1.101] (modemcable189.27-57-74.mc.videotron.ca [74.57.27.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A3C631720 for ; Tue, 24 Mar 2009 07:38:38 -0400 (EDT) Subject: Re: Cocoon 3 monitoring From: Yoann Archambault To: dev@cocoon.apache.org In-Reply-To: References: <49C3AB98.20807@apache.org> Content-Type: text/plain Date: Tue, 24 Mar 2009 07:38:32 -0400 Message-Id: <1237894712.6702.63.camel@helium> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi! I can give you this one answer: cocoon spring configurator and a couple other blocks such as cocoon xml and block deployement currently used are pre-v3 and can be found in the same SVN repository under http://svn.apache.org/repos/asf/cocoon/trunk/*/* And i have to say, speaking as someone who is starting with cocoon3, these features would be right on mark to speed up the learning curve, not to mention debugging! my two cents... Yoann On Tue, 2009-03-24 at 17:09 +0600, Lahiru Samarakoon wrote: > Hi Reinhard, > > thanks you very much for the reply and nice to meet you! > > I have checkout the Cocoon, built it and integrate in with the IDE. I > have gone through the Spring reference which describes the support for > JMX. > > What I have understand according to my knowledge is described below > alone with the project description [1]. Please correct me if I am > wrong. I have also pointed out the unclear sections of the project > description, please help me to understand them. > > Goal > Enable JMX monitoring for Cocoon 3 web applications > > The goal of this project is to enable JMX monitoring for web > applications which uses Cocoon 3 for their functionalities. So the > users (developers who use Cocoon 3) will be able to monitor how Cocoon > executes a particular task and different states in the cocoon > execution. > > > > Description > > * inspect the content of the used pipeline caches (cache keys, > content) > pipelines and caches must be registered as Mbeans using Spring-JMX. In > order to do that refactoring of the cocoon-pipeline module > might be required. (May be this can be achieved only by introducing a > "beans.xml" file > for the module). > > * be able remove cache entries or clear the whole cache (there > might be more than one cache configured!) > Methods and Attributes which are relevant to achieve above > functionalities should be presented to the Management > Interface.(Annotations like @ManagedResource, @ManagedOperation and > @ManagedAttribute can be used.) > > * get an overview of all available Servlet-Services (Spring > beans), their connections and their mount-points > cocoon-servelet module must be changed according to the content of the > overview for spring/jmx. > > Could you please explain more about connections and mount-points? > > * get an overview of all other Spring beans > To accomplish this functionality, Is it required to configure all > modules in cocoon according to the Spring/JMX ? > If not, Could you explain more about this requirement? > > * inspect all settings > I think that satisfying the previous requirement will satisfy this > requirement.(?) > > * inspect and reconfigure the logging settings (log4j) > I think this is about the implementation of the ability to change the > log4j levels of the running application (or cocoon content of the > application) by the Management Interface. > > But, could you please explain me about the way log4j works in Cocoon > 3? Because, I am confused at that point. Because, In some modules > apache commons logging is used. Is this requirement is valid only for > the cocoon web applications which are using log4j? (According to the > project goal what matters in the end is the web application). > > Deliverables > * A separate module that exposes the described functionality via > MBeans and works with JConsole. > I think what "Apache Activemq" has for their services is a similar > implementation for what is required by Cocoon 3 here. After the > project requirement is finished we can even add a web module as > activemq offers since their 5.0 release. > > * It might be necessary to refactor the pipeline caching > infrastructure in order to expose the required data and to be > able to delete cache entries > Understood. > > * It might be necessary to enhance the Cocoon Spring > Configurator in order to support a reconfiguration of the > logging framework. > Does Cocoon 3 uses the Spring Configurator of the earlies releases? > What should I refer to understand more about the Spring Configurator? > > > For the demo, Is it sufficient If I develop a Spring/JMX example which > is not related to Cocoon? If not could you tell where to look for more > details about the Cocoon 3 Implementation. > > > > [1] > http://cocoon.apache.org/3.0/student-project-ideas/cocoon3-monitoring.html > -- > Thanks & Regards, > > Lahiru Thilina Samarakoon > Department of Computer Science & Engineering, > University of Moratuwa > Mobile: 0773382138