You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2011/04/08 14:48:05 UTC

[jira] [Resolved] (CXF-3415) Make JAXB-based providers endpoint-scoped

     [ 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