public class IBMJmsCachingConnectionFactory
extends org.springframework.jms.connection.CachingConnectionFactory
implements org.mule.runtime.api.lifecycle.Stoppable, org.mule.runtime.api.lifecycle.Disposable
ConnectionFactory in order to ensure JMS session instances are reused. Applies only if the
supplied connection factory isn't already an instance of CachingConnectionFactory NOTE: Currently only Non-XA JMS
ConnectionFactory's will be decorated to provide caching.| Constructor and Description |
|---|
IBMJmsCachingConnectionFactory(javax.jms.ConnectionFactory targetConnectionFactory,
String username,
String password,
String clientId,
CachingConfiguration config,
JmsSupport jmsSupport,
javax.jms.ExceptionListener exceptionListener,
JmsReconnectionManager priorityManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Connection |
createConnection(String username,
String password) |
javax.jms.JMSContext |
createContext() |
javax.jms.JMSContext |
createContext(int sessionMode) |
javax.jms.JMSContext |
createContext(String userName,
String password) |
javax.jms.JMSContext |
createContext(String userName,
String password,
int sessionMode) |
javax.jms.QueueConnection |
createQueueConnection(String username,
String password) |
javax.jms.TopicConnection |
createTopicConnection(String username,
String password) |
void |
destroy() |
void |
dispose() |
protected javax.jms.Connection |
doCreateConnection() |
protected javax.jms.Connection |
getConnection() |
protected javax.jms.Session |
getSession(javax.jms.Connection con,
Integer mode) |
void |
onException(javax.jms.JMSException e) |
void |
stop() |
getCachedSessionCount, getCachedSessionProxy, getSessionCacheSize, isCacheConsumers, isCacheProducers, resetConnection, setCacheConsumers, setCacheProducers, setSessionCacheSizeafterPropertiesSet, closeConnection, createConnection, createQueueConnection, createSession, createTopicConnection, getClientId, getExceptionListener, getSharedConnectionProxy, getTargetConnectionFactory, initConnection, isReconnectOnException, prepareConnection, setClientId, setExceptionListener, setReconnectOnException, setTargetConnectionFactorypublic IBMJmsCachingConnectionFactory(javax.jms.ConnectionFactory targetConnectionFactory,
String username,
String password,
String clientId,
CachingConfiguration config,
JmsSupport jmsSupport,
javax.jms.ExceptionListener exceptionListener,
JmsReconnectionManager priorityManager)
public void onException(javax.jms.JMSException e)
onException in interface javax.jms.ExceptionListeneronException in class org.springframework.jms.connection.SingleConnectionFactorypublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeandestroy in class org.springframework.jms.connection.SingleConnectionFactoryprotected javax.jms.Connection getConnection()
throws javax.jms.JMSException
getConnection in class org.springframework.jms.connection.SingleConnectionFactoryjavax.jms.JMSExceptionprotected javax.jms.Session getSession(javax.jms.Connection con,
Integer mode)
throws javax.jms.JMSException
getSession in class org.springframework.jms.connection.CachingConnectionFactoryjavax.jms.JMSExceptionprotected javax.jms.Connection doCreateConnection()
throws javax.jms.JMSException
doCreateConnection in class org.springframework.jms.connection.SingleConnectionFactoryjavax.jms.JMSExceptionpublic void stop()
stop in interface org.mule.runtime.api.lifecycle.Stoppablepublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic javax.jms.Connection createConnection(String username, String password) throws javax.jms.JMSException
createConnection in interface javax.jms.ConnectionFactorycreateConnection in class org.springframework.jms.connection.SingleConnectionFactoryjavax.jms.JMSExceptionpublic javax.jms.QueueConnection createQueueConnection(String username, String password) throws javax.jms.JMSException
createQueueConnection in interface javax.jms.QueueConnectionFactorycreateQueueConnection in class org.springframework.jms.connection.SingleConnectionFactoryjavax.jms.JMSExceptionpublic javax.jms.TopicConnection createTopicConnection(String username, String password) throws javax.jms.JMSException
createTopicConnection in interface javax.jms.TopicConnectionFactorycreateTopicConnection in class org.springframework.jms.connection.SingleConnectionFactoryjavax.jms.JMSExceptionpublic javax.jms.JMSContext createContext()
createContext in interface javax.jms.ConnectionFactorycreateContext in class org.springframework.jms.connection.SingleConnectionFactorypublic javax.jms.JMSContext createContext(String userName, String password)
createContext in interface javax.jms.ConnectionFactorycreateContext in class org.springframework.jms.connection.SingleConnectionFactorypublic javax.jms.JMSContext createContext(String userName, String password, int sessionMode)
createContext in interface javax.jms.ConnectionFactorycreateContext in class org.springframework.jms.connection.SingleConnectionFactorypublic javax.jms.JMSContext createContext(int sessionMode)
createContext in interface javax.jms.ConnectionFactorycreateContext in class org.springframework.jms.connection.SingleConnectionFactoryCopyright © 2023. All rights reserved.