org.apache.activemq.pool
Class XaPooledConnectionFactory

java.lang.Object
  extended by org.apache.activemq.jms.pool.PooledConnectionFactory
      extended by org.apache.activemq.jms.pool.XaPooledConnectionFactory
          extended by org.apache.activemq.pool.XaPooledConnectionFactory
All Implemented Interfaces:
Serializable, ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, Referenceable, ObjectFactory, JNDIStorableInterface, Service
Direct Known Subclasses:
JcaPooledConnectionFactory

public class XaPooledConnectionFactory
extends XaPooledConnectionFactory
implements JNDIStorableInterface, Service

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

See Also:
Serialized Form

Field Summary
static String POOL_PROPS_PREFIX
           
 
Fields inherited from class org.apache.activemq.jms.pool.PooledConnectionFactory
stopped
 
Constructor Summary
XaPooledConnectionFactory()
           
XaPooledConnectionFactory(ActiveMQXAConnectionFactory connectionFactory)
           
 
Method Summary
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  void populateProperties(Properties props)
           
 void setProperties(Properties properties)
          set the properties for this instance as retrieved from JNDI
 
Methods inherited from class org.apache.activemq.jms.pool.XaPooledConnectionFactory
createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, getObjectInstance, getTmJndiName, getTransactionManager, isTmFromJndi, setTmFromJndi, setTmJndiName, setTransactionManager
 
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, newPooledConnection, 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
 
Methods inherited from interface javax.jms.ConnectionFactory
createConnection, createConnection
 

Field Detail

POOL_PROPS_PREFIX

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

XaPooledConnectionFactory

public XaPooledConnectionFactory()

XaPooledConnectionFactory

public XaPooledConnectionFactory(ActiveMQXAConnectionFactory connectionFactory)
Method Detail

createConnectionPool

protected ConnectionPool createConnectionPool(Connection connection)
Description copied from class: PooledConnectionFactory
Delegate that creates each instance of an ConnectionPool object. Subclasses can override this method to customize the type of connection pool returned.

Overrides:
createConnectionPool in class XaPooledConnectionFactory
Returns:
instance of a new ConnectionPool.

buildFromProperties

protected void buildFromProperties(Properties props)

populateProperties

protected void populateProperties(Properties props)

setProperties

public void setProperties(Properties properties)
Description copied from interface: JNDIStorableInterface
set the properties for this instance as retrieved from JNDI

Specified by:
setProperties in interface JNDIStorableInterface

getProperties

public Properties getProperties()
Description copied from interface: JNDIStorableInterface
Get the properties from this instance for storing in JNDI

Specified by:
getProperties in interface JNDIStorableInterface
Returns:

getReference

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


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.