How can I configure a multi thread HTTP Connection pool for JAX-RS Client in JBoss EAP?

Solution Verified - Updated -

Issue

Our application is using the RESTEasy/JAX-RS client to make requests to a REST Web Service and when it runs concurrently we see the following error in logs:

Caused by: java.lang.IllegalStateException: Invalid use of BasicClientConnManager: connection still allocated.
Make sure to release the connection before allocating another one.

Even if we release the connections in our application we still face this problem. Is this possible to configure a http connection pool for resteasy/JAX-RS client?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.