[ 
https://issues.apache.org/jira/browse/CXF-850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Tully updated CXF-850:
---------------------------

    Attachment: jaxb_context_cache.gtully.patch

This patch implements a static JAXBContext cache bases on the set of classes 
that are used to create the JAXBcontext.
The decision to include the ws-addressing types is determined before the contex 
is created to ensure that the context is not created twice.

Simple analysis of code looping on calls to getPort show that JAXBcontext 
creation takes more than 30%. With the cache, this hit is taken on just the 
first call.



> performance of repeated calls to jaxws.Service.createPort is poor, jaxb 
> context is created every time
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CXF-850
>                 URL: https://issues.apache.org/jira/browse/CXF-850
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0.1
>            Reporter: Gary Tully
>         Attachments: jaxb_context_cache.gtully.patch
>
>
> the JAXBContext should be cached

-- 
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