use of org.wso2.carbon.bpel.b4p.coordination.db.DatabaseUtil in project carbon-business-process by wso2.
the class CoordinationController method initDataSource.
/**
* Initialize Database util class.
*
* @throws B4PCoordinationException
*/
private void initDataSource() throws B4PCoordinationException {
if (log.isDebugEnabled()) {
log.debug("Initialising B4P Coordination database");
}
dbUtil = new DatabaseUtil();
dbUtil.setTransactionManager(tnxManager);
try {
dbUtil.start();
} catch (DatabaseConfigurationException e) {
String errMsg = "B4P Coordination Database Initialization failed.";
log.error(errMsg);
throw new B4PCoordinationException(errMsg, e);
}
}
Aggregations