org.apache.activemq.pool
Class PooledConnectionFactoryBean

java.lang.Object
  extended by org.apache.activemq.pool.PooledConnectionFactoryBean

public class PooledConnectionFactoryBean
extends Object

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.


Constructor Summary
PooledConnectionFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 ConnectionFactory getConnectionFactory()
           
 int getMaxConnections()
           
 int getMaximumActive()
           
 ObjectPoolFactory getPoolFactory()
           
 String getResourceName()
           
 Object getTransactionManager()
           
 void setConnectionFactory(ConnectionFactory connectionFactory)
           
 void setMaxConnections(int maxConnections)
           
 void setMaximumActive(int maximumActive)
           
 void setPoolFactory(ObjectPoolFactory poolFactory)
           
 void setResourceName(String resourceName)
           
 void setTransactionManager(Object transactionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PooledConnectionFactoryBean

public PooledConnectionFactoryBean()
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)

getPoolFactory

public ObjectPoolFactory getPoolFactory()

setPoolFactory

public void setPoolFactory(ObjectPoolFactory poolFactory)

afterPropertiesSet

@PostConstruct
public void afterPropertiesSet()
                        throws Exception
Throws:
Exception

destroy

@PreDestroy
public void destroy()
             throws Exception
Throws:
Exception


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.