Announcement Announcement Module
Collapse
No announcement yet.
<tx:advice> and @Transactional Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <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
    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/>.

    Comment

    Working...
    X