In order to minimize the overhead related with instantiating a new Host
to XML transformer on each operation execution, we cache transformers in
a thread-safe hashmap, each thread is hence associated with its own
instance of the transformer.
In order to minimize the overhead related with instantiating a new
program invoker on each operation execution, we cache program invokers in
a thread-safe hashmap, each thread is hence associated with its own
instance of the program invoker.
In order to minimize the overhead related with instantiating a new XML to
Host transformer on each operation execution, we cache transformers in a
thread-safe hashmap, each thread is hence associated with its own
instance of the transformer.
Create a message with the same header as offending message (we want
to keep correlation ID, message ID, etc...) but body becomes a text
containing the exception message.