jbonofre opened a new issue, #771:
URL: https://github.com/apache/camel-karaf/issues/771

   ### Context
   
   `camel-cxf` used to install `http-whiteboard` for the CXF servlet that 
`camel-cxf-all` registers as a Servlet Whiteboard service (#687). #755 removes 
it from the base feature because most users don't need it.
   
   On Karaf 4.4.x, the registration has no effect anyway: `http-whiteboard` 
resolves to Pax Web 8, whose whiteboard only tracks `javax.servlet.Servlet`, 
while the CXF servlet is a `jakarta.servlet.Servlet`. It can only be served by 
a Jakarta based Pax Web (Pax Web 11, Karaf 4.5).
   
   ### Proposal
   
   Once the build targets Karaf 4.5, add an opt-in `camel-cxf-whiteboard` 
feature (`camel-cxf` + the Pax Web whiteboard):
   
   - Constrain the Pax Web version so that installing it on an incompatible 
container fails instead of silently doing nothing.
   - Only register the CXF servlet when that feature is installed, rather than 
unconditionally from `camel-cxf-all`.
   - Add an integration test publishing a CXF endpoint with a relative address 
(e.g. `cxf:///hello`) and calling it through `/cxf`. A test using an absolute 
address served by another transport doesn't exercise the whiteboard.
   - Document it, including for users publishing relative address endpoints.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to