[ 
https://issues.apache.org/jira/browse/CXF-2181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12701176#action_12701176
 ] 

Daniel Kulp commented on CXF-2181:
----------------------------------


Kind of.   They aren't used AT ALL for the dispatch clients. (thus, they are 
now misnamed :-(  )    And they are only created once (at startup) for the 
Provider services.    For the port back to 2.1/2.0, I'll have to adjust the 
dispatch clients to either pass them in like you did or preferably stop 
creating a new one per request.   Thanks for the heads up. 

> Dynamic Dispatch classes should cache MessageFactory instances
> --------------------------------------------------------------
>
>                 Key: CXF-2181
>                 URL: https://issues.apache.org/jira/browse/CXF-2181
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-WS Runtime
>    Affects Versions: 2.2
>            Reporter: Kevin Conaway
>            Assignee: Daniel Kulp
>             Fix For: 2.0.11, 2.1.5, 2.2.1
>
>         Attachments: cxf-2181.patch
>
>
> From this mailing list thread: 
> http://www.nabble.com/Caching-MessageFactory-instances-tt23148305.html
> MessageFactory#newInstance is an expensive operation.  It is currently called 
> twice in a normal request/response cycle when using dynamic dispatch.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to