cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andriy Redko (JIRA)" <>
Subject [jira] [Commented] (CXF-6132) Provide JAX-RS ServletContextInitializer
Date Wed, 28 Jan 2015 00:42:35 GMT


Andriy Redko commented on CXF-6132:

Hi Sergey,

More implementation details I am filling in, more tight relations between this JIRA and CXF-5702
are poping up, it is good. So here is a simplified scenario: if SCI detects any kind of JAX-RS
application instance, it passes it directly as "" init parameter to
CXFNonSpringJaxrsServlet. However, the application may not define any singletons or classes
so the initialization will fail anyway. SCI may do more work (create respective Application
instance, check classes and singletons, ...). But, thanks to CXF-5702, SCI could make it really
simple and *always* include the discovered services and providers along with application class.
Now, CXFNonSpringJaxrsServlet can make a valid decision if those should be ignored or not,
once the instance of the JAX-RS application is created. It is also very well aligned with
the specification. 

What do you think? 
Does it make sense to you?

Best Regards,
    Andriy Redko

> Provide JAX-RS ServletContextInitializer 
> -----------------------------------------
>                 Key: CXF-6132
>                 URL:
>             Project: CXF
>          Issue Type: New Feature
>          Components: JAX-RS
>            Reporter: Sergey Beryozkin
>            Assignee: Andriy Redko
>             Fix For: 3.0.4, 3.1.0
> This will offer an advanced support for the auto-discovery of JAX-RS Application, root
resources and providers in OSGI in combination with pax-web-jetty.
> Options:
> - dynamically register the implementation as OSGI service
> - ship a static implementation
> [1]
> [2]

This message was sent by Atlassian JIRA

View raw message