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
   2. 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
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to