I'm using JBoss AS 7.1.1.Final "Brontes" and encountering a long running method call in a @Stateless
-Bean
which is cancelled after 5 Minutes:
[com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117:
TransactionReaper::check timeout
Searching for this issue I've found some answers Jboss 7.1 ejb 2.1 custom transaction timeout configuration and wikis JBoss-AS7 reference guide or JBoss Wiki.
The answer seems to be simple: Annotate the method with @TransactionTimeout
But: This class is not available in my classpath!
I have a Maven project with an EAR structure and the ejb
module has the following relevant dependencies which I use in several projects with heavy usage of EJB3:
org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec
(provided)javax.enterprise:cdi-api
(provided)org.hibernate.javax.persistence:hibernate-jpa-2.0-api
(provided)org.hibernate:hibernate-validator
(provided)
Which dependency is missing?