setUseConnectionPooling

 

public void setUseConnectionPooling(boolean usePooling);

Chooses whether to use connection pooling. If you set this to true, JMS enables connection pooling for the lifetime of any connections created through the ConnectionFactory. This also affects connections created with usePooling set to false; to disable connection pooling throughout a JVM, ensure that all ConnectionFactories used within the JVM have usePooling set to false.

Parameters

  • usePooling - true selects connection pooling. The default, and recommended, value is true. We can disable connection pooling if, for example, your applications run in an environment that performs its own pooling.


uj28890_