[jboss-dev-forums] [JBoss ESB Development] - List of ESB Categories, Services and OneWay/TwoWay

Anders Sejersbol do-not-reply at jboss.com
Fri Dec 3 05:14:07 EST 2010


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&containerType=14&container=2032]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101203/c9b2988a/attachment.html 


More information about the jboss-dev-forums mailing list