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 + "'.");
}