Search in sources :

Example 1 with DatabaseUtil

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);
    }
}
Also used : DatabaseConfigurationException(org.wso2.carbon.bpel.b4p.coordination.db.DatabaseConfigurationException) DatabaseUtil(org.wso2.carbon.bpel.b4p.coordination.db.DatabaseUtil)

Aggregations

DatabaseConfigurationException (org.wso2.carbon.bpel.b4p.coordination.db.DatabaseConfigurationException)1 DatabaseUtil (org.wso2.carbon.bpel.b4p.coordination.db.DatabaseUtil)1