public class CustomCachingConnectionFactory extends org.springframework.jms.connection.CachingConnectionFactory implements Closeable, Disposable
PHASE_NAME
Constructor and Description |
---|
CustomCachingConnectionFactory(ConnectionFactory targetConnectionFactory,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the resource.
|
Connection |
createConnection(String username,
String password) |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
protected Connection |
doCreateConnection() |
String |
getPassword() |
String |
getUsername() |
getCachedSessionProxy, getSession, getSessionCacheSize, isCacheConsumers, isCacheProducers, resetConnection, setCacheConsumers, setCacheProducers, setSessionCacheSize
afterPropertiesSet, closeConnection, createConnection, createQueueConnection, createQueueConnection, createSession, createTopicConnection, createTopicConnection, destroy, getClientId, getConnection, getExceptionListener, getSharedConnectionProxy, getTargetConnectionFactory, initConnection, isReconnectOnException, onException, prepareConnection, setClientId, setExceptionListener, setReconnectOnException, setTargetConnectionFactory
public CustomCachingConnectionFactory(ConnectionFactory targetConnectionFactory, String username, String password)
public Connection createConnection(String username, String password) throws JMSException
createConnection
in interface ConnectionFactory
createConnection
in class org.springframework.jms.connection.SingleConnectionFactory
JMSException
protected Connection doCreateConnection() throws JMSException
doCreateConnection
in class org.springframework.jms.connection.SingleConnectionFactory
JMSException
public String getUsername()
public String getPassword()
public void close() throws MuleException
Closeable
close
in interface Closeable
MuleException
- if an exception occurs closing the resourcepublic void dispose()
Disposable
dispose
in interface Disposable
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.