On Tue, Jul 16, 2013 at 6:18 PM, Geeth Munasinghe <[email protected]> wrote:
> Hi > > For next AS release we have implemented a data-agent to publish web > applications statistics to BAM. In AS user can enable or disable statistics > publishing functionality for each web applications separately from using > either of following methods. > > > 1. Webapp developers can add a context-param called 'enable. > statistics' to the web.xml in webapps > > IMO, we should stick only to adding a context parameter to enable statistics. We can update the Developer studio to support this feature. As you've explained to its bit complex to implement the management UI support for this. Why do we wanna introduce such a complexity to implement a simple UI feature? Anyway we are getting rid of these sort of UI functionalities from our management consoles. Once such example would be, securing a web service using our management console. We are getting rid of this feature and moving this to the Developer studio. Thanks, Sameera. > 1. In webapp-mgt console we have given a check box for user to enable > or disable web app statistics for each web application. > > User can user either one of them. > > For the second scenario we maintain a hash map and registry resource in > bam.webapp.statistic.publisher component. When user click the check box in > webapp-mgt.ui to enable or disable statistic, bam.webapp.statistic > publisher component updates registry and hashmap. when a request comes to > tomcat valve implemented in bam.webapp.statistic publisher component, it > check in the hashmap to verify statistic publishing enabled or disabled. if > the value does not exist in hashmap, it reads from the registry and > update the hashmap. > > To give statistics enable and disable function from webapp-mgt ui for > webapps, we have to add bam.webapp.statistic.publisher.stub as a > dependency to webapp-mgt.ui. This causes a problem when GREG product > building, because it has a dependency of webapp-mgt.ui and webapp-mgt.ui > has bam.webapp.statistic.publisher.stub dependency. > > One way to resolve this issue is add bam.webapp.statistic.publisher.stub > to webapp-mgt.ui as a optional dependency and check in osgi level weather > that dependency exists. > WDYT? > > *G. K. S. Munasinghe > * > *Software Engineer,* > *WSO2, Inc. http://wso2.com * > *lean.enterprise.middleware.* > * > * > email: [email protected] > phone:(+94) 777911226 > -- Sameera Jayasoma, Architect, WSO2, Inc. (http://wso2.com) email: [email protected] blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
