Skip to content

JAX-WS: Async client outbound max connection settings #33905

@BerksanAtes

Description

@BerksanAtes

In traditional WebSphere Application Server (tWAS), the com.ibm.websphere.webservices.http.maxConnection property limits client outbound connections. Apache CXF provides equivalent functionality through the following properties:

  • org.apache.cxf.transport.http.async.MAX_CONNECTIONS - Maximum total connections across all hosts
  • org.apache.cxf.transport.http.async.MAX_PER_HOST_CONNECTIONS - Maximum connections per individual host

or asynchronous connections, the org.apache.cxf.transport.http.async.usePolicy property is not required because CXF defaults to ASYNC mode. Simply configure the connection limits in your jvm.options file:

-Dorg.apache.cxf.transport.http.async.MAX_CONNECTIONS=<Number of connections>
-Dorg.apache.cxf.transport.http.async.MAX_PER_HOST_CONNECTIONS=<Number of connections>

For synchronous connections, you must explicitly set the usePolicy property to ALWAYS in addition to the connection limits:

-Dorg.apache.cxf.transport.http.async.usePolicy=ALWAYS
-Dorg.apache.cxf.transport.http.async.MAX_CONNECTIONS=<Number of connections>
-Dorg.apache.cxf.transport.http.async.MAX_PER_HOST_CONNECTIONS=<Number of connections>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions