Spring IllegalStateException: A JTA EntityManager cannot use getTransaction()

后端 未结 2 1021
旧时难觅i
旧时难觅i 2021-01-20 07:35

So after a big refactoring project, I am left with this exception and am unsure as how to correct it. It\'s dealing with some code that I did not write and I am unfamiliar w

2条回答
  •  庸人自扰
    2021-01-20 08:06

    Use WebSphereTransactionManagerLookup for the transaction manager lookup in Hibernate

    
    

    and remove your current transaction manager and replace it with the WebSphereUowTransactionManager.

    
    
    

    for your transaction manager lookup in Spring.

    See IBM Websphere and Spring docs for more in depth documentation.

提交回复
热议问题