|
From: Naresh B. <NB...@sa...> - 2007-08-04 22:33:16
|
Hello JETM users,
I am using JETM 1.2.1 in a web application with spring. I have
configured JETM in my applicationContext.xml with a NestedMonitor.
However the JETM Console shows only the top level elements - "Expand
Results" does not show any nested calls.
My spring configuration is as follows. Note that OrderManagementService
calls the OrderDao. I would like to see the DAO calls nested inside the
Service calls. However JTEM console shows me only the Service calls.
Note that the traceInterceptor declared inside the autoProxy is able to
intercept both Sevice and DAO calls. However etmMethodCallInterceptor
declared right under it is not. What am I doing wrong? Please help.
<bean id=3D"etmMonitor" class=3D"etm.core.monitor.NestedMonitor"
init-method=3D"start" destroy-method=3D"stop"/>
=20
<bean id=3D"etmMethodCallInterceptor"
class=3D"etm.contrib.aop.aopalliance.EtmMethodCallInterceptor"
autowire=3D"constructor"/>
<bean id=3D"traceInterceptor"
class=3D"org.springframework.aop.interceptor.SimpleTraceInterceptor"/>
<bean id=3D"autoProxy"
=20
class=3D"org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCre=
a
tor"
singleton=3D"false">
<property name=3D"interceptorNames">
<list>
<value>traceInterceptor</value>
<value>etmMethodCallInterceptor</value>
</list>
</property>
<property name=3D"beanNames">
<list>
<value>*Service</value>
<value>*Dao</value>
</list>
</property>
</bean>
<bean id=3D"orderManagementService"
class=3D"org.springframework.aop.framework.ProxyFactoryBean">
<property name=3D"proxyInterfaces"
value=3D"samples.oms.common.service.OrderManagementService"/>
<property name=3D"target" ref=3D"orderManagementServiceImpl"/>
<property name=3D"interceptorNames">
<list>
<value>hibernateInterceptor</value>
</list>
</property>
</bean>
<bean id=3D"orderManagementServiceImpl"
class=3D"samples.oms.server.service.OrderManagementServiceImpl">
<property name=3D"orderDao" ref=3D"orderDao"/>
</bean>
<bean id=3D"orderDao"
class=3D"org.springframework.aop.framework.ProxyFactoryBean">
<property name=3D"proxyInterfaces"
value=3D"samples.oms.common.dao.OrderDao"/>
<property name=3D"target" ref=3D"orderDaoImpl"/>
</bean>
<bean id=3D"orderDaoImpl" =
class=3D"samples.oms.server.dao.OrderDaoImpl">
<property name=3D"sessionFactory" ref=3D"sessionFactory"/>
</bean>
Thanks.
Naresh
|