Announcement Announcement Module
Collapse
No announcement yet.
help applicationContext config Spring 2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • help applicationContext config Spring 2

    I have worked on previous version of Spring 1.1
    where it is specified in application Context some entries like
    my.eg.xx.yy.handleThings=PROPAGATION_REQUIRES_NEW,-TempException,-AnotherException


    Moving on to Spring 2
    I have the following entries in application Context.

    My question is to how to specify (-TempException,-AnotherException)
    in the config for Spring 2


    <aop:config>
    <aopointcut id="processorMethods" expression="execution(public * my.eg.service.SpringExampleProcessor.*(..))"/>
    <aop:advisor pointcut-ref="processorMethods" advice-ref="txAllMethodsRequiresNew" />
    </aop:config>


    where txAllMethodsRequiresNew is specified in another config file as

    <tx:advice id="txAllMethodsRequiresNew" transaction-manager="my.eg.transactionManager">
    <tx:attributes>
    <tx:method name="*"
    propagation="REQUIRES_NEW"/>
    </tx:attributes>
    </tx:advice>

  • #2
    Please use [ code][/code ] tags when posting code, that way it remains readable.

    Next read the reference guide as it is explained in there how to specify rollback rules.

    Comment

    Working...
    X