Results 1 to 2 of 2

Thread: <tx:advice> and @Transactional

  1. #1
    Join Date
    Jan 2005
    Posts
    144

    Default <tx:advice> and @Transactional

    Hello

    my project uses <aop:config> with a <tx:advice> to configure transaction on all my business services.

    For a special case, I'd like to use NESTED propagation. I'd like to avoid changing my AOP config just for this case, so I plan to use a @Transactional annotation on the nested-business method.

    Will <tx:advice> detect my annotation, or just use the declared <tx:attributes> ?

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    Will <tx:advice> detect my annotation, or just use the declared <tx:attributes> ?
    It won't detect your annotation, also I strongly advice against mixing different transaction strategies. I would simply add another line to your tx:attributes and presto it works instead of adding a @Transactional and a <tx:annotation-driven/>.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

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