• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jamon + Spring

 
arief hidayat
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am developing J2SE library (jar file). This jar file will be a dependencies to other application deployed on Weblogic server.

The jar use Spring 2.5. I am planning to monitor the method execution using JAMon. I can create simple JAMon monitor using AOP interceptor.
So, the JAMon monitor start before execute method (@Before advice) and stop after execute the method (@After advice).

My question is how to generate all the monitor reports. XML, excel , or html. Any idea?

Thanks,
arief
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You install jamon.war and you get the reports from it.
 
arief hidayat
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
steve souza wrote:You install jamon.war and you get the reports from it.


So, i need to deploy it onto weblogic.

But, the JAMon monitoring code is not inside the web application itself. It will be inside the jar file of the dependency. will the JAMon.war detect it?

I don't know how exactly jamon.war doing it's job. Hope you can help to explain.

thanks
arief
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jamon statistics are kept in the jvm. If spring and jamon war are sharing the same jamon.jar file classloader then you can write stats via spring and read them via the jamon.war web pages. Put the jamon.jar at the server level, so both spring and jamon.war can use it.
 
Ram kovis
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
spring already has a class JamonPerformanceMonitorInterceptor-- Jamon...


you can use it for collecting times.. your log4j entry for Jamon should be TRACE...
 
arief hidayat
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.. I'll try it later
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!