You can customize the number of concurrent connections (default is 50) that can be created from a JMS connection factory. You can configure connection pooling for a specific JMS connection factory by defining the <connectionManager> element and then associate that element with the JMS connection factory in the server.xml file.
<jmsConnectionFactory id="jmscf1"
jndiName="jndi/example"
connectionManagerRef="cm1">
<properties.wasJms />
</jmsConnectionFactory>
<connectionManager id="cm1" maxPoolSize="10" minPoolSize="2" />
The server uses default values for any connection management settings that are not defined on the connectionManager element. If a connection manager is not defined for a connection factory, the server uses the default values for all the settings.
You can define multiple connection factories and associate each with a different connection manager. However, you cannot associate multiple connection factories with a single connection manager.
For more information about the connectionManager element, see Liberty profile: Configuration elements in the server.xml file.