Library Link To Toggle Frames Print Feedback

JMS Session Pool Configuration

The JMS configuration allows you to specify the number of JMS sessions an endpoint will keep in a pool.

Configuration element

You use the jms:sessionPool element to specify the session pool configuration for a JMS endpoint. The jms:sessionPool element is a child of both the jms:conduit element and the jms:destination element.

The jms:sessionPool element's attributes, listed in Table 3.1, “Attributes for Configuring the JMS Session Pool”, specify the high and low water marks for the endpoint's JMS session pool.

Table 3.1. Attributes for Configuring the 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.

Example

Example 3.1, “JMS Session Pool Configuration” shows an example of configuring the session pool for a Celtix Enterprise JMS provider endpoint.

Example 3.1. JMS Session Pool Configuration

...
<jms:destination id="{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-destination>
  <jms:address ... >
    ...
  </jms:address>
  ...
  <jms:sessionPool lowWaterMark="10"
                   highWaterMark="5000" />
  ...
</jms:destination>
...