@@ -1605,17 +1605,26 @@ takes a reference to a standard `ConnectionFactory` that would typically come fr
1605
1605
===== Using `CachingConnectionFactory`
1606
1606
1607
1607
The `CachingConnectionFactory` extends the functionality of `SingleConnectionFactory`
1608
- and adds the caching of `Session`, `MessageProducer`, and `MessageConsumer` instances. The initial
1609
- cache size is set to `1`. You can use the `sessionCacheSize` property to increase the number of
1610
- cached sessions. Note that the number of actual cached sessions is more than that
1611
- number, as sessions are cached based on their acknowledgment mode, so there can be up to
1612
- four cached session instances (one for each
1613
- acknowledgment mode) when `sessionCacheSize` is set to one. `MessageProducer` and `MessageConsumer` instances are cached within their
1614
- owning session and also take into account the unique properties of the producers and
1615
- consumers when caching. MessageProducers are cached based on their destination.
1616
- MessageConsumers are cached based on a key composed of the destination, selector,
1608
+ and adds the caching of `Session`, `MessageProducer`, and `MessageConsumer` instances.
1609
+ The initial cache size is set to `1`. You can use the `sessionCacheSize` property to
1610
+ increase the number of cached sessions. Note that the number of actual cached sessions
1611
+ is more than that number, as sessions are cached based on their acknowledgment mode,
1612
+ so there can be up to four cached session instances (one for each acknowledgment mode)
1613
+ when `sessionCacheSize` is set to one. `MessageProducer` and `MessageConsumer` instances
1614
+ are cached within their owning session and also take into account the unique properties
1615
+ of the producers and consumers when caching. MessageProducers are cached based on their
1616
+ destination. MessageConsumers are cached based on a key composed of the destination, selector,
1617
1617
noLocal delivery flag, and the durable subscription name (if creating durable consumers).
1618
1618
1619
+ [NOTE]
1620
+ ====
1621
+ MessageProducers and MessageConsumers for temporary queues and topics
1622
+ (TemporaryQueue/TemporaryTopic) will never be cached. Unfortunately, WebLogic JMS happens
1623
+ to implement the temporary queue/topic interfaces on its regular destination implementation,
1624
+ mis-indicating that none of its destinations can be cached. Please use a different connection
1625
+ pool/cache on WebLogic, or customize `CachingConnectionFactory` for WebLogic purposes.
1626
+ ====
1627
+
1619
1628
1620
1629
[[jms-destinations]]
1621
1630
==== Destination Management
0 commit comments