Uploaded image for project: 'jUDDI'
  1. jUDDI
  2. JUDDI-937

PolicyRoundRobin not working without service cache

    XMLWordPrintableJSON

    Details

      Description

      I use the following method in order to resolve an endpoint:

      Resolve endpoint function
       private String resolveEndpointForServiceID(String uddiServiceId) {
              try {
                  UDDIClient uddiClient = new UDDIClient();
                  ServiceLocator serviceLocator = uddiClient.getServiceLocator("uddiv3");
                  serviceLocator.setPolicy(PolicyRoundRobin.class.getName());
                  return serviceLocator.lookupEndpoint(uddiServiceId);
              } catch (Exception e) {
                  throw new EndpointResolutionFromUDDIException("Could not resolve endpoint '"+uddiServiceId+"'.", e);
              }
          }
      

      I have registered two different binding templates in juddi. Using this code I always receive the same endpoint. This comes from the fact that the topology is reloaded each time the lookupEndpoint is called because there is no cache. I guess that the service policy should still be able to make a round robin between the binding templates even if no cache is used.

        Attachments

          Activity

            People

            • Assignee:
              spyhunter99 Alex O'Ree
              Reporter:
              ghilainm@gmail.com Matthieu Ghilain
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: