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:
javax.jms.ConnectionFactory, javax.jms.ExceptionListener, javax.jms.QueueConnectionFactory, javax.jms.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(javax.jms.ConnectionFactory targetConnectionFactory, String username, String password)
           
 
Method Summary
 javax.jms.Connection createConnection(String username, String password)
           
protected  javax.jms.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(javax.jms.ConnectionFactory targetConnectionFactory,
                                      String username,
                                      String password)
Method Detail

createConnection

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

doCreateConnection

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

getUsername

public String getUsername()

getPassword

public String getPassword()


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.