public class CachingConnectionFactoryDecorator extends AbstractConnectionFactoryDecorator
ConnectionFactory
with a CustomCachingConnectionFactory
in order to ensure JMS session instances are reused if JmsConnector.isCacheJmsSessions()
is 'true' and the
supplied connection factory isn't already an instance of CustomCachingConnectionFactory
NOTE: Currently only Non-XA JMS 1.1 ConnectionFactory
's will be decorated to provide caching.Modifier and Type | Field and Description |
---|---|
protected CustomCachingConnectionFactory |
cachingConnectionFactory |
Constructor and Description |
---|
CachingConnectionFactoryDecorator() |
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(ConnectionFactory connectionFactory,
MuleContext muleContext) |
protected ConnectionFactory |
doDecorate(ConnectionFactory connectionFactory,
JmsConnector jmsConnector,
MuleContext muleContext) |
decorate, isConnectionFactoryWrapper, isXaConnectionFactory
protected CustomCachingConnectionFactory cachingConnectionFactory
protected ConnectionFactory doDecorate(ConnectionFactory connectionFactory, JmsConnector jmsConnector, MuleContext muleContext)
doDecorate
in class AbstractConnectionFactoryDecorator
public boolean appliesTo(ConnectionFactory connectionFactory, MuleContext muleContext)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.