MessageFactory#newInstance() turns out to be an expensive operation when
used in an environment with a lot of dynamic dispatch calls.  It is called
once for the outgoing request and the incoming response (or vice versa).

Is it possible for the DispatchInDatabindingInterceptor and
DispatchOutDatabindingInterceptor to cache or reuse MessageFactory instances
instead of creating them every time?  I understand that these Interceptors
are created by DispatchImpl with each call so perhaps the DispatchImpl could
provide MessageFactory implementations for these classes.

Thanks.

Kevin Conaway

Reply via email to