Spring IllegalStateException: A JTA EntityManager cannot use getTransaction()

后端 未结 2 657
Happy的楠姐
Happy的楠姐 2021-01-20 07:56

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:04

    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.

提交回复
热议问题