org.jencks.pool
Class XASessionPool

java.lang.Object
  extended by org.jencks.pool.XASessionPool
All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory

public class XASessionPool
extends java.lang.Object
implements org.apache.commons.pool.PoolableObjectFactory


Constructor Summary
XASessionPool(javax.jms.XAConnection connection)
           
XASessionPool(javax.jms.XAConnection connection, org.apache.commons.pool.ObjectPool sessionPool)
           
 
Method Summary
 void activateObject(java.lang.Object o)
           
 PooledSpringXASession borrowSession()
           
protected  javax.jms.XASession createSession()
           
 void destroyObject(java.lang.Object o)
           
protected  javax.jms.XAConnection getConnection()
           
 java.lang.Object makeObject()
           
 void passivateObject(java.lang.Object o)
           
 boolean validateObject(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XASessionPool

public XASessionPool(javax.jms.XAConnection connection)

XASessionPool

public XASessionPool(javax.jms.XAConnection connection,
                     org.apache.commons.pool.ObjectPool sessionPool)
Method Detail

borrowSession

public PooledSpringXASession borrowSession()
                                    throws javax.jms.JMSException
Throws:
javax.jms.JMSException

makeObject

public java.lang.Object makeObject()
                            throws java.lang.Exception
Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

destroyObject

public void destroyObject(java.lang.Object o)
                   throws java.lang.Exception
Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

validateObject

public boolean validateObject(java.lang.Object o)
Specified by:
validateObject in interface org.apache.commons.pool.PoolableObjectFactory

activateObject

public void activateObject(java.lang.Object o)
                    throws java.lang.Exception
Specified by:
activateObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

passivateObject

public void passivateObject(java.lang.Object o)
                     throws java.lang.Exception
Specified by:
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

getConnection

protected javax.jms.XAConnection getConnection()
                                        throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createSession

protected javax.jms.XASession createSession()
                                     throws javax.jms.JMSException
Throws:
javax.jms.JMSException


Copyright © 2010 LogicBlaze, Inc.. All Rights Reserved.