Lukasz Wysocki created CXF-7658:
-----------------------------------
Summary: SSE destinations unreachable deployed in OSGi
Key: CXF-7658
URL: https://issues.apache.org/jira/browse/CXF-7658
Project: CXF
Issue Type: Bug
Components: JAX-RS, OSGi, Transports
Affects Versions: 3.2.1
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
Reporter: Lukasz Wysocki
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|https://github.com/apache/cxf/blob/958bb235fd67e2dd3989d56e55b1ff61e68fc926/rt/transports/websocket/src/main/java/org/apache/cxf/transport/websocket/WebSocketDestinationFactory.java#L122]
starting with:
// REVISIT other way of getting the registry of http so that the plain cxf
servlet finds the
// destination?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)