Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3961

EndpointReferenceBuilder relies on internal exception throwing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SCA-2.0-Beta3
    • Java-SCA-2.0
    • SCA Java Runtime
    • None
    • All

    Description

      The EndpointReferenceBuilderImpl uses this code when it's trying to decide if a target is a domain target or not.

      try {
      getSCATargetParts(uri);

      // the target uri might be an SCA target so create an endpoint
      // so that the binder can test it against the fully populated
      // registry
      endpoint = createEndpoint(component, uri);
      if (binding instanceof SCABinding)

      { // TUSCANY-3941 // if it's an SCA binding we store it to influence the matching at runtime endpointRef.setBinding(binding); }

      endpointRef.setStatus(EndpointReference.Status.WIRED_TARGET_IN_BINDING_URI);
      } catch (Exception ex)

      { // the target string definitely isn't an SCA target string // so we can assume here that the user has configured a // resolved binding endpoint = createEndpoint(false); endpoint.setURI(uri); endpoint.setBinding(binding); endpointRef.setStatus(EndpointReference.Status.RESOLVED_BINDING); }

      Seems a bit missleading and I want change so we don't rely on internal exception throwing.

      Attachments

        Activity

          People

            simonslaws Simon Laws
            simonslaws Simon Laws
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: