Skip to main content

Session Pool Configuration

You configure an endpoint's JMS session pool using the jms:sessionPoolConfig element. This property allows you to set a high and low water mark for the number of JMS sessions an endpoint will keep pooled. The endpoint is guaranteed to maintain a pool of sessions equal to the low water mark and to never pool more sessions than specified by the high water mark. The jms:sessionPool element's attributes, listed below, specify the high and low water marks for the endpoint's JMS session pool.

Attribute

Description

lowWaterMark

Specifies the minimum number of JMS sessions pooled by the endpoint. The default is 20.

highWaterMark

Specifies the maximum number of JMS sessions pooled by the endpoint. The default is 500.

The following example shows an example of configuring the session pool for a CXF JMS service endpoint.

JMS Session Pool Configuration

<jms:destination 
name="{http://cxf.apache.org/jms_endpit}HelloJMSPort.jms-destination">
   ...
   <jms:sessionPool lowWaterMark="10" highWaterMark="5000" />
</jms:destination>

The jms:sessionPool element can also be used within a jms:conduit .

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!