org.apache.activemq.pool
Class PooledConnectionFactoryBean
java.lang.Object
org.apache.activemq.pool.PooledConnectionFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean
public class PooledConnectionFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.FactoryBean
Simple factory bean used to create a jencks connection pool.
Depending on the properties set, it will create a simple pool,
a transaction aware connection pool, or a jca aware connection pool.
The resourceName
property should be used along with the ActiveMQResourceManager
and have
the same value than its resourceName
property. This will make sure the transaction manager
maps correctly the connection factory to the recovery process.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PooledConnectionFactoryBean
public PooledConnectionFactoryBean()
getMaxConnections
public int getMaxConnections()
setMaxConnections
public void setMaxConnections(int maxConnections)
getMaximumActive
public int getMaximumActive()
setMaximumActive
public void setMaximumActive(int maximumActive)
getTransactionManager
public java.lang.Object getTransactionManager()
setTransactionManager
public void setTransactionManager(java.lang.Object transactionManager)
getResourceName
public java.lang.String getResourceName()
setResourceName
public void setResourceName(java.lang.String resourceName)
getConnectionFactory
public javax.jms.ConnectionFactory getConnectionFactory()
setConnectionFactory
public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
getPoolFactory
public org.apache.commons.pool.ObjectPoolFactory getPoolFactory()
setPoolFactory
public void setPoolFactory(org.apache.commons.pool.ObjectPoolFactory poolFactory)
afterPropertiesSet
@PostConstruct
public void afterPropertiesSet()
throws java.lang.Exception
- Throws:
java.lang.Exception
destroy
@PreDestroy
public void destroy()
throws java.lang.Exception
- Throws:
java.lang.Exception
getObject
public java.lang.Object getObject()
throws java.lang.Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
Copyright © 2005-2015. All Rights Reserved.