public class PoolingConnectionFactoryBean extends PoolingConnectionFactory implements BeanNameAware, InitializingBean, DisposableBean
PoolingConnectionFactory
. Provides sensible defaults
and also supports direct wrapping of a XAConnectionFactory
instance.Modifier and Type | Class and Description |
---|---|
static class |
PoolingConnectionFactoryBean.DirectXAConnectionFactory
A
XAConnectionFactory implementation that delegates to the
ThreadLocal PoolingConnectionFactoryBean . |
Constructor and Description |
---|
PoolingConnectionFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
XAStatefulHolder |
createPooledConnection(Object xaFactory,
ResourceBean bean) |
void |
destroy() |
protected XAConnectionFactory |
getConnectionFactory() |
void |
init() |
void |
setBeanName(String name) |
void |
setConnectionFactory(XAConnectionFactory connectionFactory)
Set the
XAConnectionFactory directly, instead of calling
#setClassName(String) . |
public void init()
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
public void setConnectionFactory(XAConnectionFactory connectionFactory)
XAConnectionFactory
directly, instead of calling
#setClassName(String)
.connectionFactory
- the connection factory to useprotected final XAConnectionFactory getConnectionFactory()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.