I have a base service class that defines an executeService method. I have a bunch of service classes extending the base service class. I want to introduce transaction on the executeService Method for few concrete service classes.
Code:<tx:advice id="txAdviceForUserService" transaction-manager="transactionManager"> <tx:attributes> <tx:method name="postTransactionProcess" read-only="true" /> <tx:method name="executeService" propagation="REQUIRES_NEW"/> </tx:attributes> </tx:advice> <aop:config> <aop:pointcut id="userServiceOperation" expression="execution(* com.orm.service.impl.UserSetupTemplate.*(..))" /> <aop:advisor advice-ref="txAdviceForUserService" pointcut-ref="userServiceOperation" /> </aop:config>The problem I face is unless I have the executeService method overriden in the service class the transaction advisor doesn't work. Any pointers as to what is wrong here?Code:@Override public void executeService(Context context) { super.executeService(context); }


Reply With Quote
