Package org.wso2.carbon.bam.common.clients

Examples of org.wso2.carbon.bam.common.clients.BAMConfigurationDSClient.addOperation()


      public void addOperation(OperationDO operation) throws BAMException {
          BAMConfigurationDSClient client = null;
          try {
              client = BAMUtil.getBAMConfigurationDSClient();
              client.addOperation(operation);
          } catch (BAMException e) {
              throw e;
          } finally {
              if (client != null) {
                  client.cleanup();
View Full Code Here


    public void addOperation(OperationDO operation) throws BAMException {
        BAMConfigurationDSClient client = null;
        try {
            client = BAMUtil.getBAMConfigurationDSClient();
            client.addOperation(operation);
        } finally {
            if (client != null) {
                client.cleanup();
            }
        }
View Full Code Here

            if (operation == null) {
                operation = new OperationDO();
                operation.setName(operationName);
                operation.setServiceID(serviceID);

                client.addOperation(operation);
                operation = client.getOperation(serviceID, operationName);
            }

            if (operation != null) {
                BAMConfigurationCache.addOperation(operation);
View Full Code Here

      }

      /* add the operations */
      for (Iterator<OMElement> itr = dbsElement
          .getChildrenWithName(new QName(DBSFields.OPERATION)); itr.hasNext();) {
        dataService.addOperation(OperationFactory.createOperation(dataService,
            itr.next()));
      }

      /* add the resources */
      for (Iterator<OMElement> itr = dbsElement.getChildrenWithName(
View Full Code Here

          }
        }
        /* the operations are added outside the loop that iterates the operation list,
         * if we add it inside the loop while iterating, we will get a concurrent modification exception */
        for (Operation tmpOp : tmpOpList) {
          dataService.addOperation(tmpOp);
        }
      }

      /* register data service for event service notification */
      DataServicesDSComponent.registerEventBrokerServiceListener(dataService);
 
View Full Code Here

          DBConstants.CONTRACT_FIRST_DUMMY_SQL, queryParams,
          getResultFromAxisOperation(dataService, axisOperation), null, null,
          new HashMap<String, String>(),
          dataService.getServiceNamespace()));
      /* operation */
      dataService.addOperation(new Operation(dataService, operationName, null,
          getOperationCallQueryGroupFromQueryParams(dataService, queryId, queryParams),
          false, null, false, false));
    }
    return dataService;
  }
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.