org.jencks.pool
Class XASessionPool
java.lang.Object
org.jencks.pool.XASessionPool
- All Implemented Interfaces:
- org.apache.commons.pool.PoolableObjectFactory
public class XASessionPool
- extends Object
- implements org.apache.commons.pool.PoolableObjectFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XASessionPool
public XASessionPool(XAConnection connection)
XASessionPool
public XASessionPool(XAConnection connection,
org.apache.commons.pool.ObjectPool sessionPool)
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.