java - JamonAdmin in Different Servlet Container -
i have web application running on weblogic. has com.jamonapi:jamon:2.81 maven dependency. i'm using org.springframework.aop.interceptor.jamonperformancemonitorinterceptor
aop configuration. every service/dao method call, jamon interceptor calculates statistics , stores them in memory.
i setup jetty base deploying jamon.war , started it. can access via http://localhost:3162/jamon/jamonadmin.jsp
however, shows local statistics. doesn't show statistics web application running on weblogic. did not suprise me since didn't configuration this. question how can magic configuration make jamon.war see statistics collected in web application running on weblogic.
thanks.
you need define jamon provided scope dependency in webapp's pom.xml.
<dependency> <groupid>com.jamonapi</groupid> <artifactid>jamon</artifactid> <version>2.81</version> <scope>provided</scope> </dependency>
this ensure weblogic webapp uses jamonapi.jar files in servlet container (jetty/lib/jamon-2.81.jar) instead of duplicate copy deployed webapp itself.
Comments
Post a Comment