Hi everybody,
maybe this is a simple problem, but I haven't found a solution yet.
I'm working on a web application which uses sub-spring contexts. The web application starts a Spring context (master Spring context) and every time a session is started a sub Spring context is started which inherits from the master Spring context. Many Spring controlled services I'd like to monitor exist in the sub Spring context.
Currently the MonitoringSpringAdvisor is defined in the master Spring context:
<bean id="facadeMonitoringAdvisor" class="net.bull.javamelody.MonitoringSpringAdvisor">
<property name="pointcut">
<bean class="org.springframework.aop.support.JdkRegexpMethodPointcut">
<property name="pattern" value=".*.service.*" />
</bean>
</property>
</bean>
The Monitoring runs but unfortunately only services defined in the master Spring context are monitored and nothing in the sub Spring context.
I tried to move the MonitoringSpringAdvisor into the sub Spring context but then no Spring controlled service was monitored. After that I had the MonitoringSpringAdvisor definition in master and sub Spring context, but that didn't help either.
Is there any possibility to have Spring activity monitored in master and sub Spring context?
Thank you in advance,
Christoph