Asynchronous method calls blocked; failed to acquire permit within 5 minutes using EJBs on JBoss EAP
Issue
- We have an EJB client that spawns muliple threads, each thread making a call to a stateless bean. Each bean called from a client thread, calls an asynchronous method on another bean in turn.
-
When the number of client threads is higher than the JBoss EJB pool size, many threads fail to finish, even if the methods called are trivial. We observe the following errors:
javax.ejb.EJBException: JBAS014516: Failed to acquire a permit within 5 MINUTES javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6.2.4
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.
