Package org.javasimon.spring

Support classes to automatically monitor Spring beans with the Monitored annotation.

See: Description

Package org.javasimon.spring Description

Support classes to automatically monitor Spring beans with the Monitored annotation.

Usage instructions:

Step -1- Make sure the Spring configuration file org/javasimon/spring/monitoring.xml is loaded as one of the first configuration files.

For example, if you use the org.springframework.web.context.ContextLoaderListener in your web.xml, the contextConfigLocation context parameter will look something like this:

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:org/javasimon/spring/monitoring.xml
classpath:context/services.xml
classpath:context/data-access-layer.xml
/WEB-INF/applicationContext.xml
</param-value>
</context-param>

Step -2- Annotate all classes and/or methods you want to monitor (see Monitored for more details). As step 1 configured annotation detection only for spring beans, make sure these classes are instantiated through Spring (i.e. declare them as a bean in a Spring configuration file).

Copyright © 2019. All rights reserved.