public static interface ConnectionFactoryUtils.ResourceFactory
doGetTransactionalSession method.| Modifier and Type | Method and Description |
|---|---|
Connection |
createConnection()
Create a new JMS Connection for registration with a JmsResourceHolder.
|
Session |
createSession(Connection con)
Create a new JMS Session for registration with a JmsResourceHolder.
|
Connection |
getConnection(JmsResourceHolder holder)
Fetch an appropriate Connection from the given JmsResourceHolder.
|
Session |
getSession(JmsResourceHolder holder)
Fetch an appropriate Session from the given JmsResourceHolder.
|
boolean |
isSynchedLocalTransactionAllowed()
Return whether to allow for a local JMS transaction that is synchronized with
a Spring-managed transaction (where the main transaction might be a JDBC-based
one for a specific DataSource, for example), with the JMS transaction
committing right after the main transaction.
|
@Nullable Session getSession(JmsResourceHolder holder)
holder - the JmsResourceHoldernull if none found@Nullable Connection getConnection(JmsResourceHolder holder)
holder - the JmsResourceHoldernull if none foundConnection createConnection() throws JMSException
JMSException - if thrown by JMS API methodsSession createSession(Connection con) throws JMSException
con - the JMS Connection to create a Session forJMSException - if thrown by JMS API methodsboolean isSynchedLocalTransactionAllowed()