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

    ESB: Services of a certain category

      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
          mferguson

          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));
          }
          
          ....