It matches on the interface name: <aop:advisor id="managerTx" advice-ref="txAdvice" pointcut="execution(* *..service.*Manager.*(..))" order="2"/>
If you've named your class with a different name, you can either 1) add the following to your Spring context file: <aop:config> <aop:advisor id="managerTx" advice-ref="txAdvice" pointcut="execution(* *..service.*Pattern.*(..))"/> </aop:config> Or 2) use @Transactional annotations on your class/methods. We recommend using annotations if it's a one-off. If you plan on naming more classes with your pattern, we recommend using XML like the one above. Matt On 11/6/07, Dale Newfield <[EMAIL PROTECTED]> wrote: > Matt Raible wrote: > > Does this work in a test? If so, then it's probably because your class > > name doesn't end in Manager. > > That always confuses me. Is it matching on the class name, or the > interface name? > > -Dale > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
