org.apache.activemq.pool
Class PooledConnectionFactory

java.lang.Object
  extended by org.apache.activemq.jms.pool.PooledConnectionFactory
      extended by org.apache.activemq.pool.PooledConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory, Referenceable, JNDIStorableInterface, Service

public class PooledConnectionFactory
extends PooledConnectionFactory
implements JNDIStorableInterface, Service

Add Service and Referenceable and TransportListener to @link{org.apache.activemq.jms.pool.PooledConnectionFactory}


Field Summary
static String POOL_PROPS_PREFIX
           
 
Fields inherited from class org.apache.activemq.jms.pool.PooledConnectionFactory
stopped
 
Constructor Summary
PooledConnectionFactory()
           
PooledConnectionFactory(ActiveMQConnectionFactory activeMQConnectionFactory)
           
PooledConnectionFactory(String brokerURL)
           
 
Method Summary
protected  void buildFromProperties(Properties props)
           
protected  ConnectionPool createConnectionPool(javax.jms.Connection connection)
           
 Properties getProperties()
           
 Reference getReference()
           
protected  javax.jms.Connection newPooledConnection(ConnectionPool connection)
           
protected  void populateProperties(Properties props)
           
 void setProperties(Properties properties)
           
 
Methods inherited from class org.apache.activemq.jms.pool.PooledConnectionFactory
clear, createConnection, createConnection, createConnection, getConnectionFactory, getConnectionsPool, getExpiryTimeout, getIdleTimeout, getMaxConnections, getMaximumActiveSessionPerConnection, getNumConnections, getTimeBetweenExpirationCheckMillis, initConnectionsPool, isBlockIfSessionPoolIsFull, isCreateConnectionOnStartup, setBlockIfSessionPoolIsFull, setConnectionFactory, setCreateConnectionOnStartup, setExpiryTimeout, setIdleTimeout, setMaxConnections, setMaximumActiveSessionPerConnection, setTimeBetweenExpirationCheckMillis, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

Field Detail

POOL_PROPS_PREFIX

public static final String POOL_PROPS_PREFIX
See Also:
Constant Field Values
Constructor Detail

PooledConnectionFactory

public PooledConnectionFactory()

PooledConnectionFactory

public PooledConnectionFactory(ActiveMQConnectionFactory activeMQConnectionFactory)

PooledConnectionFactory

public PooledConnectionFactory(String brokerURL)
Method Detail

buildFromProperties

protected void buildFromProperties(Properties props)

populateProperties

protected void populateProperties(Properties props)

setProperties

public void setProperties(Properties properties)
Specified by:
setProperties in interface JNDIStorableInterface

getProperties

public Properties getProperties()
Specified by:
getProperties in interface JNDIStorableInterface

getReference

public Reference getReference()
                       throws NamingException
Specified by:
getReference in interface Referenceable
Throws:
NamingException

newPooledConnection

protected javax.jms.Connection newPooledConnection(ConnectionPool connection)
Overrides:
newPooledConnection in class PooledConnectionFactory

createConnectionPool

protected ConnectionPool createConnectionPool(javax.jms.Connection connection)
Overrides:
createConnectionPool in class PooledConnectionFactory


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.