[
https://issues.apache.org/jira/browse/CXF-850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp updated CXF-850:
----------------------------
This patch doesn't actually work. The Set<Class> in the WeakHashMap is not
held onto. Thus, if you add a few System.gc() calls in your test, the context
is collected and a new one is created.
I'm going to make two changes:
1) The JAXBDataBinding hold onto the Set with a strong reference. Thus, it
won't be collected.
2) I'm switching the map to a org.apache.cxf.common.util.CacheMap which
handles the case of the keys being .equals, but not == and keeping the object
in the cache.
> 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
> Assignee: Daniel Kulp
> 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.