abstract class ConnectionFactoryUtils
Helper class for managing a JMS javax.jms.ConnectionFactory, in particular for obtaining transactional JMS resources for a given ConnectionFactory.
Mainly for internal use within the framework. Used by org.springframework.jms.core.JmsTemplate as well as org.springframework.jms.listener.DefaultMessageListenerContainer.
Author
Juergen Hoeller
Since
2.0
See Also
SmartConnectionFactory
ConnectionFactoryUtils()
Helper class for managing a JMS javax.jms.ConnectionFactory, in particular for obtaining transactional JMS resources for a given ConnectionFactory. Mainly for internal use within the framework. Used by org.springframework.jms.core.JmsTemplate as well as org.springframework.jms.listener.DefaultMessageListenerContainer. |
open static fun doGetTransactionalSession(connectionFactory: ConnectionFactory, resourceFactory: ResourceFactory): Session
Obtain a JMS Session that is synchronized with the current transaction, if any. This open static fun doGetTransactionalSession(connectionFactory: ConnectionFactory, resourceFactory: ResourceFactory, startConnection: Boolean): Session
Obtain a JMS Session that is synchronized with the current transaction, if any. |
|
open static fun getTargetSession(session: Session): Session
Return the innermost target Session of the given Session. If the given Session is a proxy, it will be unwrapped until a non-proxy Session is found. Otherwise, the passed-in Session will be returned as-is. |
|
open static fun getTransactionalQueueSession(cf: QueueConnectionFactory, existingCon: QueueConnection, synchedLocalTransactionAllowed: Boolean): QueueSession
Obtain a JMS QueueSession that is synchronized with the current transaction, if any. Mainly intended for use with the JMS 1.0.2 API. |
|
open static fun getTransactionalSession(cf: ConnectionFactory, existingCon: Connection, synchedLocalTransactionAllowed: Boolean): Session
Obtain a JMS Session that is synchronized with the current transaction, if any. |
|
open static fun getTransactionalTopicSession(cf: TopicConnectionFactory, existingCon: TopicConnection, synchedLocalTransactionAllowed: Boolean): TopicSession
Obtain a JMS TopicSession that is synchronized with the current transaction, if any. Mainly intended for use with the JMS 1.0.2 API. |
|
open static fun isSessionTransactional(session: Session, cf: ConnectionFactory): Boolean
Determine whether the given JMS Session is transactional, that is, bound to the current thread by Spring's transaction facilities. |
|
open static fun releaseConnection(con: Connection, cf: ConnectionFactory, started: Boolean): Unit
Release the given Connection, stopping it (if necessary) and eventually closing it. Checks |