Examples of XADataSourceInfo


Examples of org.wso2.carbon.dataservices.core.description.xa.XADataSourceInfo

    if (isXADS) {
      if (!dataService.isEnableXA()) {
        throw new DataServiceFault(
            "Internal XADataSource: XA transaction support must be enabled to use XADataSources");
      }
      XADataSourceInfo xaInfo = ((RDBMSConfig) config).getXADataSourceInfo()
      connectionFactory = new DataSourceXAConnectionFactory(
          dataService.getDSSTxManager().getTransactionManager(), xaInfo.getXADataSource());
    } else if (externalDS != null) {
      if (externalDS instanceof XADataSource) {
        if (!dataService.isEnableXA()) {
          throw new DataServiceFault(
              "External XADataSource: XA transaction support must be enabled to use XADataSources");
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.description.xa.XADataSourceInfo

      xaPropsEl = AXIOMUtil.stringToOM(propsString);
    } catch (Exception e) {
      throw new DataServiceFault(e, "Error in passing XA data source properties: " + propsString);
    }
    Map<String, String> xaProps = DBUtils.extractProperties(xaPropsEl);
    return new XADataSourceInfo(this.getDataService(), className, xaProps);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.