我想在JTA事务中执行存储过程,但由于某种原因必须使用本地事务。我创建了一个切入点,使用本地事务管理器为此,但异常抛出如下。有没有人有这样的问题?你怎么解决这个问题?
*
After increasing transaction time-out to 300, no timeout exception. But the following exception is still thrown:
Exception [TOPLINK-23011] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070428)): oracle.toplink.exceptions.TransactionException
Exception Description: UnitOfWork [UnitOfWork(
DatabaseAccessor(connected)
Oracle10Platform)] was rendered inactive before associated externally managed transaction was complete.
at oracle.toplink.exceptions.TransactionException.inactiveUnitOfWork(TransactionException.java:105)
*
答案 0 :(得分:0)
为什么不能使用Spring的“需要新的”事务注释?然后,您将获得一个新事务,如果该事务涉及单个资源,则它与“本地”事务一样好。