You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sbo13 <sb...@gmx.de> on 2014/04/07 13:51:47 UTC

JaxbDataFormat should not parse the Schema over and over again

Hi, 

When looking into the JaxbDataFormat I saw that the Schema is parsed for
every method call, which dosn't make sense, since the Schema is threadsafe
(see it's javadoc)
I extended the JaxbDataFormat to cache the Schema and now the parsing is
done about 5-6 times faster.
I also made an jira issue: https://issues.apache.org/jira/browse/CAMEL-7350
If you would prefer a patch file instead of my extended class just let me
know 

Regards,

Sebastian



--
View this message in context: http://camel.465427.n5.nabble.com/JaxbDataFormat-should-not-parse-the-Schema-over-and-over-again-tp5749890.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JaxbDataFormat should not parse the Schema over and over again

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Thanks for reporting and providing a better solution.

On Mon, Apr 7, 2014 at 1:51 PM, sbo13 <sb...@gmx.de> wrote:
> Hi,
>
> When looking into the JaxbDataFormat I saw that the Schema is parsed for
> every method call, which dosn't make sense, since the Schema is threadsafe
> (see it's javadoc)
> I extended the JaxbDataFormat to cache the Schema and now the parsing is
> done about 5-6 times faster.
> I also made an jira issue: https://issues.apache.org/jira/browse/CAMEL-7350
> If you would prefer a patch file instead of my extended class just let me
> know
>
> Regards,
>
> Sebastian
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/JaxbDataFormat-should-not-parse-the-Schema-over-and-over-again-tp5749890.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io