|
spring-jms | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface ConnectionFactoryUtils.ResourceFactory
Callback interface for resource creation.
Serving as argument for the doGetTransactionalSession method.
| Method Summary | |
|---|---|
javax.jms.Connection |
createConnection()
Create a new JMS Connection for registration with a JmsResourceHolder. |
javax.jms.Session |
createSession(javax.jms.Connection con)
Create a new JMS Session for registration with a JmsResourceHolder. |
javax.jms.Connection |
getConnection(JmsResourceHolder holder)
Fetch an appropriate Connection from the given JmsResourceHolder. |
javax.jms.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. |
| Method Detail |
|---|
javax.jms.Session getSession(JmsResourceHolder holder)
holder - the JmsResourceHolder
null if none foundjavax.jms.Connection getConnection(JmsResourceHolder holder)
holder - the JmsResourceHolder
null if none found
javax.jms.Connection createConnection()
throws javax.jms.JMSException
javax.jms.JMSException - if thrown by JMS API methods
javax.jms.Session createSession(javax.jms.Connection con)
throws javax.jms.JMSException
con - the JMS Connection to create a Session for
javax.jms.JMSException - if thrown by JMS API methodsboolean isSynchedLocalTransactionAllowed()
|
spring-jms | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||