Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-358

JAXB Coder is not thread safe

Details

    Description

      Marshaller and Unmarshaller are cached for reuse in an instance variable. These objects are not thread safe (http://stackoverflow.com/questions/7400422/jaxb-creating-context-and-marshallers-cost), so they should be accessed in a single-threaded manner, either via use of a ThreadLocal or creating a new instance in calls to encode/decode.

      Attachments

        Issue Links

          Activity

            People

              tgroh Thomas Groh
              tgroh Thomas Groh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: