org.apache.aries.transaction.jms
Class RecoverablePooledConnectionFactory

java.lang.Object
  extended by org.apache.aries.transaction.jms.PooledConnectionFactory
      extended by org.apache.aries.transaction.jms.internal.XaPooledConnectionFactory
          extended by org.apache.aries.transaction.jms.RecoverablePooledConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory

public class RecoverablePooledConnectionFactory
extends XaPooledConnectionFactory

A pooled connection factory which is dedicated to work with the Geronimo/Aries transaction manager for proper recovery of in-flight transactions after a crash.


Constructor Summary
RecoverablePooledConnectionFactory()
           
 
Method Summary
protected  ConnectionPool createConnectionPool(javax.jms.Connection connection)
           
 String getName()
           
 void setName(String name)
          The unique name for this managed XAResource.
 void start()
           
 
Methods inherited from class org.apache.aries.transaction.jms.internal.XaPooledConnectionFactory
getTransactionManager, getXaConnectionFactory, setTransactionManager, setXaConnectionFactory
 
Methods inherited from class org.apache.aries.transaction.jms.PooledConnectionFactory
createConnection, createConnection, createConnection, createPoolFactory, getConnectionFactory, getExpiryTimeout, getIdleTimeout, getMaxConnections, getMaximumActive, getPoolFactory, setBlockIfSessionPoolIsFull, setConnectionFactory, setExpiryTimeout, setIdleTimeout, setMaxConnections, setMaximumActive, setPoolFactory, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoverablePooledConnectionFactory

public RecoverablePooledConnectionFactory()
Method Detail

getName

public String getName()

setName

public void setName(String name)
The unique name for this managed XAResource. This name will be used by the transaction manager to recover transactions.

Parameters:
name -

createConnectionPool

protected ConnectionPool createConnectionPool(javax.jms.Connection connection)
                                       throws javax.jms.JMSException
Overrides:
createConnectionPool in class XaPooledConnectionFactory
Throws:
javax.jms.JMSException

start

public void start()
Overrides:
start in class PooledConnectionFactory


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.