|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.jms.core.JmsTemplate.JmsTemplateResourceFactory
private class JmsTemplate.JmsTemplateResourceFactory
ResourceFactory implementation that delegates to this template's protected callback methods.
| Constructor Summary | |
|---|---|
private |
JmsTemplate.JmsTemplateResourceFactory()
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private JmsTemplate.JmsTemplateResourceFactory()
| Method Detail |
|---|
public Connection getConnection(JmsResourceHolder holder)
ConnectionFactoryUtils.ResourceFactory
getConnection in interface ConnectionFactoryUtils.ResourceFactoryholder - the JmsResourceHolder
null if none foundpublic Session getSession(JmsResourceHolder holder)
ConnectionFactoryUtils.ResourceFactory
getSession in interface ConnectionFactoryUtils.ResourceFactoryholder - the JmsResourceHolder
null if none found
public Connection createConnection()
throws JMSException
ConnectionFactoryUtils.ResourceFactory
createConnection in interface ConnectionFactoryUtils.ResourceFactoryJMSException - if thrown by JMS API methods
public Session createSession(Connection con)
throws JMSException
ConnectionFactoryUtils.ResourceFactory
createSession in interface ConnectionFactoryUtils.ResourceFactorycon - the JMS Connection to create a Session for
JMSException - if thrown by JMS API methodspublic boolean isSynchedLocalTransactionAllowed()
ConnectionFactoryUtils.ResourceFactory
isSynchedLocalTransactionAllowed in interface ConnectionFactoryUtils.ResourceFactory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||