Package 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 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.resourceName
property should be used along with theGenericResourceManager
and have the same value than itsresourceName
property. This will make sure the transaction manager maps correctly the connection factory to the recovery process.
-
-
Constructor Summary
Constructors Constructor Description PooledConnectionFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
destroy()
ConnectionFactory
getConnectionFactory()
int
getMaxConnections()
int
getMaximumActive()
Object
getObject()
Class
getObjectType()
String
getResourceName()
Object
getTransactionManager()
boolean
isSingleton()
void
setConnectionFactory(ConnectionFactory connectionFactory)
void
setMaxConnections(int maxConnections)
void
setMaximumActive(int maximumActive)
void
setResourceName(String resourceName)
void
setTransactionManager(Object transactionManager)
-
-
-
Method Detail
-
getMaxConnections
public int getMaxConnections()
-
setMaxConnections
public void setMaxConnections(int maxConnections)
-
getMaximumActive
public int getMaximumActive()
-
setMaximumActive
public void setMaximumActive(int maximumActive)
-
getTransactionManager
public Object getTransactionManager()
-
setTransactionManager
public void setTransactionManager(Object transactionManager)
-
getResourceName
public String getResourceName()
-
setResourceName
public void setResourceName(String resourceName)
-
getConnectionFactory
public ConnectionFactory getConnectionFactory()
-
setConnectionFactory
public void setConnectionFactory(ConnectionFactory connectionFactory)
-
getObject
public Object getObject() throws Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean
- Throws:
Exception
-
getObjectType
public Class getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean
-
-