lemonzone2010 / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

Issue configuring Business Facade with @net.bull.javamelody.MonitoredWithSpring annotation #329

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.In the spring MVC 3.X project, Service object is autowired in Controller 
class using @Autowired annotation. Each service class has its own interface.
2. In the service interface, I am using 
@net.bull.javamelody.MonitoredWithSpring annotation at the interface level for 
monitoring the service classes (9. Business facades (if Spring)) - Alternative 
to Step 3.
3. I have tried putting this annotation at class level and method level too, 
but still I am not getting spring related statistics.

What is the expected output? What do you see instead?
I want to see the statistics for Spring, but I don't see anything in that 
section

What version of the product are you using? On what application server, JDK,
operating system?
javamelody.jar + jrobin-1.5.9.1.jar + Tomcat 6.0.37 + JDK 1.5

Please provide any additional information below.
If the above method doesn't work, then is there a way to monitor for Autowired 
service classes using java melody, as i don't have any configuration file for 
service layer. I have tried using the Step 3 of Business facades (if spring) 
but to no use. That also didn't work

Original issue reported on code.google.com by priyank....@gmail.com on 7 Aug 2013 at 3:19

GoogleCodeExporter commented 9 years ago
Javamelody version - 1.44.0

Original comment by priyank....@gmail.com on 7 Aug 2013 at 3:29

GoogleCodeExporter commented 9 years ago
You have to use net/bull/javamelody/monitoring-spring.xml [1], or its content, 
in your spring context in order to make 
@net.bull.javamelody.MonitoredWithSpring work.

[1] 
https://code.google.com/p/javamelody/source/browse/trunk/javamelody-core/src/mai
n/resources/net/bull/javamelody/monitoring-spring.xml

Resolving as invalid.

Original comment by evernat@free.fr on 7 Aug 2013 at 8:31

GoogleCodeExporter commented 9 years ago
yes, I am already loading the net/bull/javamelody/monitoring-spring.xml file in 
the contextConfigLocation in web.xml, but still it doesn't show any spring 
statistics.

Original comment by priyank....@gmail.com on 7 Aug 2013 at 9:56