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.
The
resourceName property should be used along with the GenericResourceManager 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.-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()jakarta.jms.ConnectionFactoryintintbooleanvoidsetConnectionFactory(jakarta.jms.ConnectionFactory connectionFactory) voidsetMaxConnections(int maxConnections) voidsetMaximumActive(int maximumActive) voidsetResourceName(String resourceName) voidsetTransactionManager(Object transactionManager)
-
Constructor Details
-
PooledConnectionFactoryBean
public PooledConnectionFactoryBean()
-
-
Method Details
-
getMaxConnections
public int getMaxConnections() -
setMaxConnections
public void setMaxConnections(int maxConnections) -
getMaximumActive
public int getMaximumActive() -
setMaximumActive
public void setMaximumActive(int maximumActive) -
getTransactionManager
-
setTransactionManager
-
getResourceName
-
setResourceName
-
getConnectionFactory
public jakarta.jms.ConnectionFactory getConnectionFactory() -
setConnectionFactory
public void setConnectionFactory(jakarta.jms.ConnectionFactory connectionFactory) -
afterPropertiesSet
- Throws:
Exception
-
destroy
- Throws:
Exception
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean
-