[ 
https://issues.apache.org/jira/browse/CXF-9086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18016301#comment-18016301
 ] 

Grzegorz Grzybek commented on CXF-9086:
---------------------------------------

Writing from top of my head (just got back from PTO and I have quite a lot of 
outstanding tasks):
* I will be happy to provide 
{{org.apache.cxf.transport.http.osgi.ServletExporter}} equivalent based on OSGi 
CMPN Whiteboard (only OSGi Core API needed to register services) and tested 
using Pax web and/or Felix HTTP (as this is now not that important as before)
* OSGi metadata (MANIFEST.MF) can be generated as before using Felix' 
maven-bundle-plugin, but defaults are never good, so it'd require a bit of 
tweaking
* CXF had OSGi Blueprint namespace handlers, but I'm not sure this should be 
brought back, as OSGi Blueprint is faaaaaar from being active (it's working 
quite like it was working 10 years ago)
* CXF 3 registered ManagedService (ConfigAdmin) for:
** {{org.apache.cxf.http.jetty}} PID
** {{org.apache.cxf.osgi}} PID
** {{org.apache.cxf.http.conduits}} factory PID
** {{org.apache.cxf.workqueues}} factory PID
* CXF 3 was tracking these services:
** {{org.osgi.service.cm.ConfigurationAdmin}}
** {{org.osgi.service.http.HttpService}}
** {{org.apache.cxf.Bus}} - for blueprint probably
** {{javax.management.MBeanServer}} - probably in Karaf, where this is quite 
important
** some unknown service in 
{{org.apache.cxf.xkms.service.CertificateRepoProxyFactory}}

So if there was a need for a roadmap, then I'd suggest:
# bring back OSGi manifest headers - unaffecting code, only POMs
# register CXF servlet as Whiteboard service, to be tracked by Pax Web 11 / 
Felix HTTP Jetty 12
# bring back _real_ OSGi support by correctly tracking instances of 
configurable services - interceptors, conduits, busses, ...

> Bring back OSGi support
> -----------------------
>
>                 Key: CXF-9086
>                 URL: https://issues.apache.org/jira/browse/CXF-9086
>             Project: CXF
>          Issue Type: Improvement
>          Components: OSGi
>    Affects Versions: 4.1.0
>            Reporter: Andriy Redko
>            Priority: Major
>
> OSGI Compedium Release 8.1.0 claims to bring Jakarta support:
>  * [https://docs.osgi.org/specification/osgi.cmpn/8.1.0/]
> However the ecosystem at the moment does not seem to be ready:
>  * [https://github.com/ops4j/org.ops4j.pax.web/issues/1802]
>  * https://issues.apache.org/jira/browse/ARIES-2158
>  * [https://lists.apache.org/thread/n30xb51gffwmfxs1ldw8zlvj21moszyh] (Apache 
> Karaf 5)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to