1 Reply Latest reply on Jul 26, 2013 4:23 AM by m.myslik

    List of ESB Categories, Services and OneWay/TwoWay

    sejersbol

      Hi,

       

      Simple question, is it possible (programmatically and on runtime) to retrieve a list of all deployed Categories and Services, and whether they are OneWay or TwoWay?

       

      I have been trying to do this via the jUDDI, but I'm only about 1/2 way there... Here is what I got:

       

       

      {code}
      

      ...

       

      import org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl;

      import org.jboss.soa.esb.services.registry.Registry;

       

      ...

      System.setProperty("org.jboss.soa.esb.registry.queryManagerURI", "http://my-esb-server:8080/juddi/inquiry");

      System.setProperty("org.jboss.soa.esb.registry.lifeCycleManagerURI", "http://my-esb-server:8080/juddi/publish");

      System.setProperty("org.jboss.soa.esb.registry.factoryClass", "org.apache.ws.scout.registry.ConnectionFactoryImpl");

      System.setProperty("org.jboss.soa.esb.registry.user", "myuser");

      System.setProperty("org.jboss.soa.esb.registry.password", "mypass");

      System.setProperty("javax.xml.registry.ConnectionFactoryClass", "org.apache.ws.scout.registry.ConnectionFactoryImpl");

      Registry registry = new JAXRRegistryImpl();

      List<String> services = registry.findAllServices();

      System.out.println(services);

      ...

      {code}

       

       

      This works (if you include a bunch of JARs), but I'm not sure this is the right way to do it, and I'm also still missing the Categories and whether they are OneWay or TwoWay.

       

      Can someone guide me in a direction of a proper solution - any information is appriciated!

       

      Thanks in advance!

       

       

      Kind regards

       

      Anders Sejersbol

        • 1. Re: List of ESB Categories, Services and OneWay/TwoWay
          m.myslik

          I am currently working on a similar problem. I need to get all service names, which is easy using this:

           

          reg = RegistryFactory.getRegistry();

          List<String> services = reg.findAllServices();

           

          but I am unable to get their categories... which is frustrating since alsmost all methods that takes service as an argument need to have specified both tha name and the category. It would be really helpful if someone figures out how to do this...