public class ConcurrentJmsSenderTemplate extends AbstractJmsSenderTemplate
This class produces instances for concurrent use by different threads: threaded applications can share one instance.
Important: if you change any properties AFTER sending on the session, then you will need to explicitly stop and restart the session to have the changes take effect!
| Constructor and Description |
|---|
ConcurrentJmsSenderTemplate() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterUseWithoutErrors(javax.jms.Connection c,
javax.jms.Session s) |
protected javax.jms.Session |
getOrRefreshSession(javax.jms.Connection c) |
protected javax.jms.Connection |
getOrReuseConnection() |
java.lang.String |
toString() |
close, destroy, executeCallback, executeCallbackInternal, getAtomikosConnectionFactoryBean, getDeliveryMode, getDestination, getDestinationName, getPriority, getReplyToDestination, getReplyToDestinationName, getTimeToLive, getUser, init, refreshConnection, sendBytesMessage, sendMapMessage, sendObjectMessage, sendTextMessage, setAtomikosConnectionFactoryBean, setDeliveryMode, setDestination, setDestinationName, setPassword, setPriority, setReplyToDestination, setReplyToDestinationName, setTimeToLive, setUserprotected javax.jms.Session getOrRefreshSession(javax.jms.Connection c)
throws javax.jms.JMSException
getOrRefreshSession in class AbstractJmsSenderTemplatejavax.jms.JMSExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected javax.jms.Connection getOrReuseConnection()
throws javax.jms.JMSException
getOrReuseConnection in class AbstractJmsSenderTemplatejavax.jms.JMSExceptionprotected void afterUseWithoutErrors(javax.jms.Connection c,
javax.jms.Session s)
throws javax.jms.JMSException
afterUseWithoutErrors in class AbstractJmsSenderTemplatejavax.jms.JMSExceptionCopyright © 2018. All Rights Reserved.