Javamelody, Spring & AspectJ

Javamelody is a tool for monitoring Java applications. It measures and calculates statistics of JVM state, JDBC calls, Spring, EJB or Guice managed beans’ methods execution. Javamelody provides Spring configuration (monitoring-spring.xml), which You can include in Your Spring configuration out of the box.



	
		
			
		
	

	

	

Above configuration creates proxies on annotated classes or methods automatically. It can fail in many circumstances. E.g. if You don’t use interfaces or use aspectj with some type of code weaving. To avoid these problems you need to configure Spring monitoring in a slightly different AspectJ way:



    
        
    

    


2 thoughts on “Javamelody, Spring & AspectJ

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.