You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Gary Tully (JIRA)" <ji...@apache.org> on 2007/07/26 15:54:40 UTC

[jira] Commented: (CXF-850) performance of repeated calls to jaxws.Service.createPort is poor, jaxb context is created every time

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

Gary Tully commented on CXF-850:
--------------------------------

The other major expensive piece of work that getPort/createPort does is generate a memory model of the wsdl definition with service infos and endpoint infos and binding infos and schemas.
Ideally these List<ServiceInfos> could be cached with the wsdl definition but we currently have a problem in that we effect the endpointinfo when setting the endpoint address at various places. So at the moment this cache cannot be used, the SpringBeansTest shows up the problem. Hopefully I will come back to this if I am not beaten to it.

The cache should be in WSDLServiceBuilder IMHO
:
            synchronized (SERVICE_INFOS_CACHE) {
                if (!SERVICE_INFOS_CACHE.containsKey(wsdlService)) {
                    try {
                        List<ServiceInfo> svcs = 
                            new WSDLServiceBuilder(getBus()).buildServices(definition, wsdlService);
                        SERVICE_INFOS_CACHE.put(wsdlService, svcs);
                    } catch (XmlSchemaException ex) {
                        throw new ServiceConstructionException(new Message("SERVICE_CREATION_MSG", LOG), ex);
                    }
                    
                }
            services = SERVICE_INFOS_CACHE.get(wsdlService);



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