Camel: using unmarshal().tidyMarkup() from multiple threads

104 views Asked by At

It's apparently thread safe. However, can anyone tell me if it's locked with single instance of TidyMarkupDataFormat or separate instances are created for separate threads? I mean do we have multiple parsers (one per one thread) or a single parser shared among all threads.

1

There are 1 answers

1
Willem Jiang On

I just checked the code of TidyMarkupDataFormat, it creates parer per unmarshalrequest. So I think it should be thread safe, as no parer is shared in different threads.