Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7658

SSE destinations unreachable deployed in OSGi

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.2.5
    • Component/s: JAX-RS, OSGi, Transports
    • Labels:
      None
    • Environment:

      Karaf

      features:  cxf, http

      bundles:

      mvn:org.atmosphere/atmosphere-runtime
      mvn:org.apache.cxf/cxf-rt-rs-sse

       

      SSE services (jaxrs) and bus managed through blueprint

    • Estimated Complexity:
      Unknown

      Description

      Destinations registered for SSE services are unreachable when used in OSGi (Karaf, blueprint).

      The problem seems to be that SseHttpTransportFactory creates it's own private DestinationRegistry where it registers it's destinations.

      While at the same time handling of incoming requests queries an instance of DestinationRegistry created in HTTPTransportActivator (bundle activator of http transport).

       

      NOTE:

      The same failure mode in websocket transport is averted by a workaround in WebSocketDestinationFactory HERE starting with:
      // REVISIT other way of getting the registry of http so that the plain cxf servlet finds the
      // destination?

        Attachments

          Activity

            People

            • Assignee:
              reta Andriy Redko
              Reporter:
              LWysocki Lukasz Wysocki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: