Announcement Announcement Module
No announcement yet.
Aspectj Spring Websphere integration issue Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Aspectj Spring Websphere integration issue

    I have been trying to switch from spring aop transaction management to spring aspecjt transaction management.

    My configuration goes like this
    application context

    <bean id="txMgr"
    class="org.springframework.transaction.jta.WebSphe reUowTransactionManager">
    <tx:annotation-driven transaction-manager="txMgr" mode="aspectj"/>

    My aop file has the aspect defined <aspect name="org.springframework.transaction.aspectj.Anno tationTransactionAspect" />

    I can see the required weaving going on fine.

    But the problem is when i run the app I am getting some error.

    The scenario is class a (already running in an outer transaction)-> class b method (uses @Transactional(propagation = Propagation.REQUIRES_NEW)).

    The issues seems to be when the transaction is being suspended I am getting the below errors? Any ideas on how to solve this>?

    Caused by: org.springframework.transaction.TransactionSuspens ionNotSupportedException: JtaTransactionManager needs a JTA TransactionManager for suspending a transaction: specify the 'transactionManager' or 'transactionManagerName' property
    at org.springframework.transaction.jta.JtaTransaction Manager.doJtaSuspend( 9)
    at org.springframework.transaction.jta.JtaTransaction Manager.doSuspend(
    at atformTransactionManager.suspend(AbstractPlatformT
    at atformTransactionManager.handleExistingTransaction (
    at atformTransactionManager.getTransaction(AbstractPl
    at org.springframework.transaction.interceptor.Transa ctionAspectSupport.createTransactionIfNecessary(Tr
    at org.springframework.transaction.interceptor.Transa ctionAspectSupport.createTransactionIfNecessary(Tr
    at org.springframework.transaction.aspectj.AbstractTr ansactionAspect.ajc$before$org_springframework_tra nsaction_aspectj_AbstractTransactionAspect$1$2a73e 96c(AbstractTransactionAspect.aj:63)

  • #2
    Similar issue raised in the past, but no solution