LibraryToggle FramesPrintFeedback

JMS Session Pool Configuration

Overview

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 22, specify the high and low water marks for the endpoint's JMS session pool.

Table 22. Attributes for Configuring the JMS Session Pool

AttributeDescription
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 68 shows an example of configuring the session pool for a Fuse Services Framework JMS provider endpoint.

Example 68. JMS Session Pool Configuration

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

Comments powered by Disqus