1 Reply Latest reply on Oct 16, 2009 2:48 PM by Mac Ferguson

    ESB: Services of a certain category

    Gabriele Colombini Newbie

      Hello everybody. I have a question: it is possible to obtain the names of all the services of a certain category?
      In other words, i have a category, i want the list of the registered services of that category.

      Thank you


        • 1. Re: ESB: Services of a certain category
          Mac Ferguson Newbie

          use the org.jboss.soa.esb.services.registry.Registry interface:

          import org.jboss.soa.esb.services.registry.Registry;
          import org.jboss.soa.esb.services.registry.RegistryFactory;
          
          
          ...
          
          
          String categoryName = "catname";
          Registry reg = RegistryFactory.getRegistry();
          List<String> serviceNames = reg.findServices(categoryName);
          
          //to get the EPRs for invocations
          
          List<EPR> eprs = new List<EPR>();
          
          for (String serviceName : serviceNames) {
          eprs.add(reg.findEPR(categoryName, serviceName));
          }
          
          ....