public class PooledConnectionFactory extends PooledConnectionFactory implements JNDIStorableInterface, Service
| Modifier and Type | Field and Description |
|---|---|
static String |
POOL_PROPS_PREFIX |
connectionFactory, stopped| Constructor and Description |
|---|
PooledConnectionFactory() |
PooledConnectionFactory(ActiveMQConnectionFactory activeMQConnectionFactory) |
PooledConnectionFactory(String brokerURL) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildFromProperties(Properties props) |
protected ConnectionPool |
createConnectionPool(Connection connection)
Delegate that creates each instance of an ConnectionPool object.
|
Properties |
getProperties()
Get the properties from this instance for storing in JNDI
|
Reference |
getReference() |
protected Connection |
newPooledConnection(ConnectionPool connection) |
protected void |
populateProperties(Properties props)
Called by any superclass that implements a JNDIReferencable or similar that needs to collect
the properties of this class for storage etc.
|
void |
setProperties(Properties properties)
set the properties for this instance as retrieved from JNDI
|
clear, createConnection, createConnection, createConnection, createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, getBlockIfSessionPoolIsFullTimeout, getConnectionFactory, getConnectionsPool, getExpiryTimeout, getIdleTimeout, getMaxConnections, getMaximumActiveSessionPerConnection, getNumConnections, getTimeBetweenExpirationCheckMillis, initConnectionsPool, isBlockIfSessionPoolIsFull, isCreateConnectionOnStartup, isReconnectOnException, isUseAnonymousProducers, setBlockIfSessionPoolIsFull, setBlockIfSessionPoolIsFullTimeout, setConnectionFactory, setCreateConnectionOnStartup, setExpiryTimeout, setIdleTimeout, setMaxConnections, setMaximumActiveSessionPerConnection, setReconnectOnException, setTimeBetweenExpirationCheckMillis, setUseAnonymousProducers, start, stoppublic static final String POOL_PROPS_PREFIX
public PooledConnectionFactory()
public PooledConnectionFactory(ActiveMQConnectionFactory activeMQConnectionFactory)
public PooledConnectionFactory(String brokerURL)
protected void buildFromProperties(Properties props)
protected void populateProperties(Properties props)
PooledConnectionFactorypopulateProperties in class PooledConnectionFactoryprops - a properties object that should be filled in with this objects property values.public void setProperties(Properties properties)
JNDIStorableInterfacesetProperties in interface JNDIStorableInterfacepublic Properties getProperties()
JNDIStorableInterfacegetProperties in interface JNDIStorableInterfacepublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionprotected Connection newPooledConnection(ConnectionPool connection)
newPooledConnection in class PooledConnectionFactoryprotected ConnectionPool createConnectionPool(Connection connection)
PooledConnectionFactorycreateConnectionPool in class PooledConnectionFactoryCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.