Re: git commit: CAMEL-7349 cach the schema in JaxbDataFormate

2014-04-08 Thread Willem Jiang
good suggestion, I just updated the code that way :) -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On April 8, 2014 at 10:24:06 PM, Claus Ibsen (claus.ib...@gmail

Re: git commit: CAMEL-7349 cach the schema in JaxbDataFormate

2014-04-08 Thread Claus Ibsen
Hi Instead of synchrnoized logic which isn't ideal, we should use doStart / doStop to do this kind of logic. eg you can extend ServiceSupport and then in doStart / doStop you can load the schema, so its ready before use. So then you don't need any scynrhonized code and whatnot. On Tue, Apr 8, 201