import org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource;
import org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl;
import org.w3c.dom.Element;
public class MinervaConnectionFactory implements ConnectionFactoryInterface {
public static final String module = MinervaConnectionFactory.class.getName();
<BUG>protected static Map dsCache = FastMap.newInstance();
</BUG>
public Connection getConnection(String helperName, Element jotmJdbcElement) throws SQLException, GenericEntityException {
<BUG>XAPoolDataSource pds = (XAPoolDataSource) dsCache.get(helperName);
if (pds != null) {</BUG>
return TransactionFactory.getCursorConnection(helperName, pds.getConnection());

import org.ofbiz.minerva.pool.jdbc.xa.XAPoolDataSource;
import org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl;
import org.w3c.dom.Element;
public class MinervaConnectionFactory implements ConnectionFactoryInterface {
public static final String module = MinervaConnectionFactory.class.getName();
protected static Map<String, XAPoolDataSource> dsCache = FastMap.newInstance();
public Connection getConnection(String helperName, Element jotmJdbcElement) throws SQLException, GenericEntityException {
XAPoolDataSource pds = dsCache.get(helperName);
if (pds != null) {
return TransactionFactory.getCursorConnection(helperName, pds.getConnection());
