
Originally Posted by
Marten Deinum
1) Use [ code][/code ] tags when posting code
2) Read chapter 6 of the reference guide (especially 6.6.1)
3) Try to use 1 aop:config block to avoid double proxying
4) You are using JTA make sure everything you use works with JTA (i.e. is XA capable).
You cannot advice a bean that spring doesn't know about... The bean you are trying to advice is
1) Instantiating the application context itself
2) The bean is instantiated by struts not spring (as I stated spring only advices beans it knows about)
3) You are trying to advice the bean that is instantiating the application context... Ehrm....
Excuse me for these questions:
1) ok, I don't knew it
2) where can I discover it?Please, give me a link
3) ok, I joined two aop:config blocks such
Code:
<aop:config>
<aop:pointcut id="SpringHibernateTestOperation"
expression="execution(* gestalle.test.SpringHibernateTest.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="SpringHibernateTestOperation" />
<aop:aspect ref="LoggingAspect">
<aop:pointcut id="myCutLogging" expression="execution(* gestalle.hibernate.EmployeeDao2_HibernateTemplate.*(..))"/>
<aop:around pointcut-ref="myCutLogging" method="log"/>
<aop:after-throwing pointcut-ref="myCutLogging" method="after_throwing"/>
</aop:aspect>
</aop:config>
4)I implementing Global transaction management strategy through application server BEA weblogic 8.1.6
About 1) 2) 3) of second section response, I don't understand what's wrong, I am inexperienced...
Please, help me.
Many thanks