You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2014/10/02 21:27:35 UTC

[jira] [Resolved] (TOMEE-143) JAXB Performance boost via saving generated accessors

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

Romain Manni-Bucau resolved TOMEE-143.
--------------------------------------
    Resolution: Fixed

first pass done, we'll open another issue if we need it

> JAXB Performance boost via saving generated accessors
> -----------------------------------------------------
>
>                 Key: TOMEE-143
>                 URL: https://issues.apache.org/jira/browse/TOMEE-143
>             Project: TomEE
>          Issue Type: Improvement
>            Reporter: David Blevins
>            Assignee: Jonathan Gallimore
>
> The JAXB RI itself will use reflection to generate accessor classes.  We use JAXB for reading all descriptors.  The result is a below 1 second startup is impossible unless JAXB can be optimized:
> This call alone takes over 1 second:
>         JAXBContextFactory.newInstance(
>                 Application.class,
>                 ApplicationClient.class,
>                 Beans.class,
>                 Connector.class,
>                 EjbJar.class,
>                 FacesConfig.class,
>                 HandlerChains.class,
>                 JavaWsdlMapping.class,
>                 Persistence.class,
>                 TldTaglib.class,
>                 WebApp.class,
>                 WebFragment.class,
>                 Webservices.class,
>                 ValidationConfigType.class,
>                 EntityMappings.class,
>                 OpenejbJar.class,
>                 org.apache.openejb.jee.jpa.unit.Persistence.class,
>                 PersistenceFragment.class
>         );
> Simply saving the generated JAXB classes maybe be the way to avoid this reflection overhead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)