package org.jfox.jdbc.xa;
import org.huihoo.jfox.pool.ObjectFactory;
import org.huihoo.jfox.pool.PoolableObject;
import org.huihoo.jfox.pool.SimpleObjectPool;
public class XAConnectionPool extends SimpleObjectPool {
public XAConnectionPool(ObjectFactory factory) {
super((XAConnectionFactory)factory);
((XAConnectionFactory)factory).setPool(this);
}
public XAConnectionPool(ObjectFactory factory, int initNum, int maxRest) {
super(factory, initNum, maxRest);
((XAConnectionFactory)factory).setPool(this);
}
PoolableObject retrieveObject(String user, String password) throws Exception {
return ((XAConnectionFactory)factory).makeObject(user,password);
}
public static void main(String[] args) {
}
}