Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3415

Make JAXB-based providers endpoint-scoped

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.4
    • JAX-RS
    • None

    Description

      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.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            sergey_beryozkin Sergey Beryozkin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: