|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jms.listener.AbstractPollingMessageListenerContainer.MessageListenerContainerResourceFactory
private class AbstractPollingMessageListenerContainer.MessageListenerContainerResourceFactory
ResourceFactory implementation that delegates to this listener container's protected callback methods.
Constructor Summary | |
---|---|
private |
AbstractPollingMessageListenerContainer.MessageListenerContainerResourceFactory()
|
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 AbstractPollingMessageListenerContainer.MessageListenerContainerResourceFactory()
Method Detail |
---|
public Connection getConnection(JmsResourceHolder holder)
ConnectionFactoryUtils.ResourceFactory
getConnection
in interface ConnectionFactoryUtils.ResourceFactory
holder
- the JmsResourceHolder
null
if none foundpublic Session getSession(JmsResourceHolder holder)
ConnectionFactoryUtils.ResourceFactory
getSession
in interface ConnectionFactoryUtils.ResourceFactory
holder
- the JmsResourceHolder
null
if none foundpublic Connection createConnection() throws JMSException
ConnectionFactoryUtils.ResourceFactory
createConnection
in interface ConnectionFactoryUtils.ResourceFactory
JMSException
- if thrown by JMS API methodspublic Session createSession(Connection con) throws JMSException
ConnectionFactoryUtils.ResourceFactory
createSession
in interface ConnectionFactoryUtils.ResourceFactory
con
- 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 |