Configuring Java CAPS Environment Components for Communications Adapters

HL7 Outbound Adapter - Connection Pool Settings

The HL7 Outbound Adapter - Connection Pool Settings are specific to the RA connection pool of Sun Java System Application Server (Sun One Application Server) or Sun Runtime Server only. The parameter settings in this section will go into sun-ra.xml.

This section of the TCP/IP HL7 Adapter Environment properties contains the top-level parameters displayed in the following table.

Table 12 Environment - HL7 Outbound Adapter - Connection Pool Settings

Name 

Description 

Required Value 

Steady Pool Size

Specifies the minimum number of RA connections to be maintained. 

When the value is set to a number greater than 0 (zero), the container not only pre-populates the RA connection pool with the specified number, but also attempts to ensure that there is always this many RA connections in the free pool. This ensures that there are enough RA connections in the ready-to-serve state to process user requests. 

This parameter does not necessarily guarantee that no more than steady-pool-size instances exist at a given time. It only governs the number of instances that are pooled over a long period of time. For example, suppose an idle stateless session container has a fully-populated pool with a steady-pool-size of 10. If 20 concurrent requests arrive for the RA connection component, the container creates 10 additional instances to satisfy the burst of requests. The advantage of this is that it prevents the container from blocking any of the incoming requests. However, if the activity dies down to 10 or fewer concurrent requests, the additional 10 instances are discarded. 

An integer indication the minimum number of RA connections to be maintained. 

The configured default is 1.

Max Pool Size

Specifies the maximum number of RA connections in the pool. 

An integer indication the maximum number of RA connections in the pool. A value of 0 (zero) indicates that the pool is unbounded.

The configured default is 32.

Pool Idle Timeout in Seconds

Specifies the maximum amount of time (in seconds) that an RA connections instance can remain idle in the pool. When an RA connection has exceeded the configured Pool Idle Timeout, a timer thread removes the unused RA connection. This property defines the interval at which this thread runs. 

A value greater than 0 indicates that the container removes or destroys any RA connection instance that is idle at this specified duration. A value of 0 (zero) specifies that idle RA connections can remain in the pool indefinitely.

The maximum amount of time (in seconds) that an RA connections instance can remain idle in the pool. 

The configured default is 300 (5 minutes).