org.jencks.pool
Class XASessionPool

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

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


Constructor Summary
XASessionPool(XAConnection connection)
           
XASessionPool(XAConnection connection, org.apache.commons.pool.ObjectPool sessionPool)
           
 
Method Summary
 void activateObject(Object o)
           
 PooledSpringXASession borrowSession()
           
protected  XASession createSession()
           
 void destroyObject(Object o)
           
protected  XAConnection getConnection()
           
 Object makeObject()
           
 void passivateObject(Object o)
           
 boolean validateObject(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(XAConnection connection)

XASessionPool

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

borrowSession

public PooledSpringXASession borrowSession()
                                    throws JMSException
Throws:
JMSException

makeObject

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

destroyObject

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

validateObject

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

activateObject

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

passivateObject

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

getConnection

protected XAConnection getConnection()
                              throws JMSException
Throws:
JMSException

createSession

protected XASession createSession()
                           throws JMSException
Throws:
JMSException


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