Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1767

Avoid performance issue on SAXParserFactory retrieval

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 3.5.0.CR1, 4.0.0.Beta2
    • None
    • jaxrs
    • None

    Description

      Executing SAXParserFactory.newInstance() on WildFly results in few exceptions being thrown and caught to eventually figure out the proper SAXParserFactory for the current ThreadContext classloader; this badly affects performances of the RESTEasy JAXB provider.
      We could mitigate the issue by having a caching mechanism of SAXParserFactory instances in the org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller.

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            rhn-support-asoldano Alessio Soldano
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: