Getting javax.ejb.ConcurrentAccessTimeoutException in ejb in JBoss EAP 6/7
Issue
- Getting exception like below.
javax.ejb.ConcurrentAccessTimeoutException: JBAS014373: EJB 3.1 PFD2 4.8.5.5.1 concurrent access timeout on org.jboss.invocation.InterceptorContext$Invocation@7d5446 - could not obtain lock within 5000MILLISECONDS
org.jboss.as.ejb3.concurrency.ContainerManagedConcurrencyInterceptor.processInvocation(ContainerManagedConcurrencyInterceptor.java:100) [jboss-as-ejb3-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]
at
.
.
.
- Having the error above even if the class is annotated with @Lock(READ)
@Singleton
@javax.ejb.Lock(javax.ejb.LockType.READ)
public class MySingletonBean {
public void aReadMethod() {...}
@javax.ejb.Lock(javax.ejb.LockType.WRITE)
public void aWriteMethod() {...}
}
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.x
- Java Enterprise
- EJB 3.1 onwards
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
