org.mule.transport.jms
Class CustomCachingConnectionFactory

java.lang.Object
  extended by org.springframework.jms.connection.SingleConnectionFactory
      extended by org.springframework.jms.connection.CachingConnectionFactory
          extended by org.mule.transport.jms.CustomCachingConnectionFactory
All Implemented Interfaces:
ConnectionFactory, ExceptionListener, QueueConnectionFactory, TopicConnectionFactory, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class CustomCachingConnectionFactory
extends org.springframework.jms.connection.CachingConnectionFactory


Field Summary
 
Fields inherited from class org.springframework.jms.connection.SingleConnectionFactory
logger
 
Constructor Summary
CustomCachingConnectionFactory(ConnectionFactory targetConnectionFactory, String username, String password)
           
 
Method Summary
 Connection createConnection(String username, String password)
           
protected  Connection doCreateConnection()
           
 String getPassword()
           
 String getUsername()
           
 
Methods inherited from class org.springframework.jms.connection.CachingConnectionFactory
getCachedSessionProxy, getSession, getSessionCacheSize, isCacheConsumers, isCacheProducers, resetConnection, setCacheConsumers, setCacheProducers, setSessionCacheSize
 
Methods inherited from class org.springframework.jms.connection.SingleConnectionFactory
afterPropertiesSet, closeConnection, createConnection, createQueueConnection, createQueueConnection, createSession, createTopicConnection, createTopicConnection, destroy, getClientId, getExceptionListener, getSharedConnectionProxy, getTargetConnectionFactory, initConnection, isReconnectOnException, onException, prepareConnection, setClientId, setExceptionListener, setReconnectOnException, setTargetConnectionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCachingConnectionFactory

public CustomCachingConnectionFactory(ConnectionFactory targetConnectionFactory,
                                      String username,
                                      String password)
Method Detail

createConnection

public Connection createConnection(String username,
                                   String password)
                            throws JMSException
Specified by:
createConnection in interface ConnectionFactory
Overrides:
createConnection in class org.springframework.jms.connection.SingleConnectionFactory
Throws:
JMSException

doCreateConnection

protected Connection doCreateConnection()
                                 throws JMSException
Overrides:
doCreateConnection in class org.springframework.jms.connection.SingleConnectionFactory
Throws:
JMSException

getUsername

public String getUsername()

getPassword

public String getPassword()


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.