Anders Sejersbol [
http://community.jboss.org/people/sejersbol] created the discussion
"List of ESB Categories, Services and OneWay/TwoWay"
To view the discussion, visit:
http://community.jboss.org/message/574226#574226
--------------------------------------------------------------
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://lv-t-phxesb01:8080/juddi/inquiry
http://lv-t-phxesb01:8080/juddi/inquiry");
System.setProperty(
"org.jboss.soa.esb.registry.lifeCycleManagerURI",
"
http://lv-t-phxesb01:8080/juddi/publish
http://lv-t-phxesb01: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", "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 http://my-esb-server:8080/juddi/inquiry");
System.setProperty("org.jboss.soa.esb.registry.lifeCycleManagerURI", "
http://my-esb-server:8080/juddi/publish 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
[
http://community.jboss.org/message/574226#574226]
Start a new discussion in JBoss ESB Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]