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

SSE destinations unreachable deployed in OSGi

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.2.5
    • JAX-RS, OSGi, Transports
    • None
    • 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

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: