Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: AOP Declarative Transaction Management

  1. #11
    Join Date
    Dec 2007
    Posts
    90

    Default

    I don't think you need to declare that, just set the transactional advice

    Code:
    <aop:config>
            <aop:pointcut id="dataAccessOperation"
                          expression="execution(* com.foo.infrastructure.SystemArchitecture.dataAccessOperation())"/>
    <aop:advisor advice-ref="txAdvice" pointcut-ref="dataAccessOperation"/>
        </aop:config>
    or an interface implemented by all dao's which is proxied:
    Code:
    <aop:config>
            <aop:pointcut id="dataAccessOperation"
                          expression="this(com.foo.service.MyServiceInterface))"/>
    <aop:advisor advice-ref="txAdvice" pointcut-ref="dataAccessOperation"/>
        </aop:config>
    Last edited by Helena; Feb 19th, 2008 at 01:13 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •