3 Replies Latest reply on May 11, 2012 6:58 PM by tcunning

    EPRs storage in registry

    _amnesiac

      Hi,

       

      I can't find where EPRs for HTTP protocol are stored. Can anyone tell where I can find information about wsdl exposed with JBoss ESB?

      In UDDI registry there are only ESB actions stored.

      I tried to obtain EPRs using

       

      registry.findEPRs(serviceCategory,

                                                                            serviceName);

       

      but result does not contain http protocol EPRs.

      Page http://localhost:8080/contract/ shows correct wsdl in HTTP -> Contract section, so it is correctly exposed and deployed.

       

      Please help.

        • 1. Re: EPRs storage in registry
          _amnesiac

          I've found how to read WSDLs of exposed services:

          List<Service> services = ServicePublisher.getServices();
                                        for (Service service : services) {
                                                  List<ServicePublisher> servicePublishers = ServicePublisher
                                                                      .getServicePublishers(service);
                                                  for (ServicePublisher servicePublisher : servicePublishers) {
                                                            final Publisher publisher = servicePublisher.getPublisher();
                                                            if (publisher instanceof ContractReferencePublisher) {
                                                                      final ContractReferencePublisher contractReferencePublisher = (ContractReferencePublisher) publisher;
                                                                      final URI serviceContractURI = contractReferencePublisher
                                                                                          .getServiceContractURI();
                                                                      System.out.println(serviceContractURI);
                                                            }
                                                  }
                                        }
          
          

           

          It is based on code found in /deploy/contract.war/index.jsp.

           

          Does anyone know where publishers data is stored in database?

          • 2. Re: EPRs storage in registry
            _amnesiac

            Does information about ServicePublishers and wsdl files exposed with JBoss ESB is stored in memory? There's no information about exposed wsdl/contracts in juddi database.

            • 3. Re: EPRs storage in registry
              tcunning

              I think they are stored in memory - if you check out org.jboss.soa.esb.listeners.config.ServicePublisher, there's a static Map there.

              1 of 1 people found this helpful