[
https://issues.apache.org/jira/browse/CXF-3415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Beryozkin resolved CXF-3415.
-----------------------------------
Resolution: Fixed
> Make JAXB-based providers endpoint-scoped
> -----------------------------------------
>
> Key: CXF-3415
> URL: https://issues.apache.org/jira/browse/CXF-3415
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS
> Affects Versions: 2.4
> Reporter: Sergey Beryozkin
> Assignee: Sergey Beryozkin
> Fix For: 2.4
>
>
> JAXB providers have static Maps of JAXB contexts, additionally default JAXB
> providers are shared between all the endpoints which prevents the
> JAXBContexts from being recycled.
> Dynamically cloning the default providers seems to be the best option at this
> stage; adding them early to endpoint-specific ProviderFactory instances is
> problematic as they can interfere with other custom XML/JSON providers in
> cases where they are deemed to be equal by the sort algorithm or when custom
> providers have weaker media types (with wildcards). Adding them dynamically
> might create some minor contention but only at the start.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira