return daoContext;
}
private DaoTransactionManager parseTransactionManager(Element transPoolElement)
throws DaoException {
DaoTransactionManager txMgr = null;
Properties attributes = parseAttributes(transPoolElement);
String implementation = attributes.getProperty("type");
implementation = resolveAlias(implementation);
try {
txMgr = (DaoTransactionManager) Resources.classForName(implementation).newInstance();
} catch (Exception e) {
throw new DaoException("Error while configuring DaoManager. Cause: " + e.toString(), e);
}
Properties props = properties;
if (props == null) {
props = parsePropertyElements(transPoolElement);
} else {
props.putAll(parsePropertyElements(transPoolElement));
}
txMgr.configure(props);
if (txMgr == null) {
throw new DaoException("Error while configuring DaoManager. Some unknown condition caused the " +
"DAO Transaction Manager to be null after configuration.");
}