Package org.castor.cpa.test.framework.xml

Examples of org.castor.cpa.test.framework.xml.Transaction


            _databases.put(database.getName(), database);
        }
       
        Iterator transIter = cpactfconf.iterateTransaction();
        while (transIter.hasNext()) {
            Transaction trans = (Transaction) transIter.next();
            _transactions.put(trans.getName(), trans);
        }
    }
View Full Code Here


        return JDOConfFactory.createJNDI(name);
    }
   
    private org.castor.jdo.conf.TransactionDemarcation createTransactionDemarcation(
            final String tx) {
        Transaction trans = _transactions.get(tx);
       
        if (trans.getMode() == TransactionModeType.LOCAL) {
            return JDOConfFactory.createLocalTransactionDemarcation();
        } else if (trans.getMode() == TransactionModeType.GLOBAL) {
            Manager manager = trans.getManager();
            if (manager == null) {
                throw new CPAConfigException("No manager definition found "
                        + "in global transaction config '" + tx + "'.");
            }
           
View Full Code Here

TOP

Related Classes of org.castor.cpa.test.framework.xml.Transaction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.