Package javax.xml.registry

Examples of javax.xml.registry.BusinessQueryManager.findServices()


      Collection<String> findQualifiers = new ArrayList<String>();
      findQualifiers.add(FindQualifier.AND_ALL_KEYS);
      findQualifiers.add(FindQualifier.EXACT_NAME_MATCH);
      findQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
      logger.log(Level.DEBUG, "Going to query the registry for name pattern " + namePatterns);
      BulkResponse response = bqm.findServices(null, findQualifiers,
          namePatterns, classifications, specifications);
      if (response.getStatus()==JAXRResponse.STATUS_SUCCESS) {
        return response.getCollection();
      } else {
        throw new RegistryException();
View Full Code Here


      String name=classificationScheme.getName().getValue();
      logger.debug("Name=" + name);
      Collection<String> nameParams = new ArrayList<String>();
      //The name of the service is wild
      nameParams.add("%");
      BulkResponse bs = bqm.findServices(null, null,nameParams,classifications, null);
      int status = bs.getStatus();
      logger.debug("status=" + status);
    } catch (JAXRException je) {
      logger.error(je);
    }
View Full Code Here

      Collection<String> findQualifiers = new ArrayList<String>();
      findQualifiers.add(FindQualifier.AND_ALL_KEYS);
      findQualifiers.add(FindQualifier.EXACT_NAME_MATCH);
      findQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
      logger.log(Level.DEBUG, "Going to query the registry for name pattern " + namePatterns);
      BulkResponse response = bqm.findServices(null, findQualifiers,
          namePatterns, classifications, specifications);
      if (response.getStatus()==JAXRResponse.STATUS_SUCCESS) {
        if (response.getCollection().size() <= 1) {
          for (Iterator servIter = response.getCollection().iterator(); servIter.hasNext();)
          {
View Full Code Here

      findQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
      Collection<Classification> classifications = new ArrayList<Classification>();
            classifications.add(classification);
          //Find based upon qualifier type and values
      logger.log(Level.DEBUG, "Going to query the registry for classification " + classifications);
      BulkResponse response = bqm.findServices(null, findQualifiers,
          null, classifications, null);
      if (response.getStatus()==JAXRResponse.STATUS_SUCCESS) {
        services = (Collection<Service>) response.getCollection();
      }
      return services;
View Full Code Here

            String qname = "%";
            names.add(qname);
            Collection fQualifiers = new ArrayList();
            fQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
            Key key = new KeyImpl("67AB9FD0-C3D9-11D8-BC4B-D52B9593C1C0");
            BulkResponse br = bqm.findServices(key, fQualifiers,
                    names, null, null);
            if (br != null &&
                    br.getStatus() == JAXRResponse.STATUS_SUCCESS) {
                System.out.println("Successfully queried the  registry");
                System.out.println("for services matching the " +
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.