interface SmartConnectionFactory : ConnectionFactory
Extension of the javax.jms.ConnectionFactory
interface, indicating how to release Connections obtained from it.
Author
Juergen Hoeller
Since
2.0.2
abstract fun shouldStop(con: Connection): Boolean
Should we stop the Connection, obtained from this ConnectionFactory? |
open class DelegatingConnectionFactory : SmartConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, InitializingBean
javax.jms.ConnectionFactory implementation that delegates all calls to a given target javax.jms.ConnectionFactory, adapting specific This class allows for being subclassed, with subclasses overriding only those methods (such as Can also be defined as-is, wrapping a specific target ConnectionFactory, using the "shouldStopConnections" flag to indicate whether Connections obtained from the target factory are supposed to be stopped before closed. The latter may be necessary for some connection pools that simply return released connections to the pool, not stopping them while they sit in the pool. |