You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scout-dev@ws.apache.org by "Tom Cunningham (JIRA)" <sc...@ws.apache.org> on 2009/09/23 18:14:16 UTC

[jira] Resolved: (SCOUT-91) JAXBContext.newInstance is expensive and needs to be cached

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

Tom Cunningham resolved SCOUT-91.
---------------------------------

    Resolution: Fixed

Cache the JAXBContext so we don't have to do a newInstance all the time.

> JAXBContext.newInstance is expensive and needs to be cached
> -----------------------------------------------------------
>
>                 Key: SCOUT-91
>                 URL: https://issues.apache.org/jira/browse/SCOUT-91
>             Project: Scout
>          Issue Type: Bug
>          Components: Scout Implementation
>    Affects Versions: 1.1.1
>            Reporter: Anil Saldhana
>            Assignee: Tom Cunningham
>             Fix For: 1.2
>
>
> JAXBContext.newInstance is very expensive. 
> The JAXBContext needs to be cached in a public static final variable after creation for later access.  Since it is threadsafe by design, it should be possible to cache.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org