JBoss Community

List of ESB Categories, Services and OneWay/TwoWay

created by Anders Sejersbol in JBoss ESB Development - View the full discussion

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",
System.setProperty(
"org.jboss.soa.esb.registry.lifeCycleManagerURI",
System.setProperty("org.jboss.soa.esb.registry.factoryClass",
"org.apache.ws.scout.registry.ConnectionFactoryImpl");
System.setProperty("org.jboss.soa.esb.registry.user", "admin");
System.setProperty("org.jboss.soa.esb.registry.password", "admin");
System.setProperty("javax.xml.registry.ConnectionFactoryClass",
"org.apache.ws.scout.registry.ConnectionFactoryImpl");
Registry registry = new JAXRRegistryImpl();
// Registry registry = RegistryFactory.getRegistry();
List<String> services = registry.findAllServices();
System.out.println(services);

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

 

Reply to this message by going to Community

Start a new discussion in JBoss ESB Development at Community