Transaction TransactionImple ActionStatus.ABORTED was already rolled back

為{幸葍}努か 提交于 2019-12-04 14:22:57

I've noticed that you're using org.jboss.annotation.ejb.TransactionTimeout instead of the required EJB3 one: org.jboss.ejb3.annotation.TransactionTimeout.

In your POM, try replacing the dependency that refers your current TransactionTimeout by this one:

<dependency>
    <groupId>org.jboss.ejb3</groupId>
    <artifactId>jboss-ejb3-ext-api</artifactId>
    <version>2.2.0.Final</version>
    <scope>provided</scope>
</dependency>

Then you can specify your value and unit:

@TransactionTimeout(value = 10, unit = TimeUnit.SECONDS).

You can find a related issue at JBoss's forum.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!