Author: buildbot Date: Sat Aug 24 21:18:55 2013 New Revision: 876037 Log: Production update by buildbot for camel
Modified: websites/production/camel/content/book-dataformat-appendix.html websites/production/camel/content/book-in-one-page.html websites/production/camel/content/cache/main.pageCache websites/production/camel/content/jaxb.html Modified: websites/production/camel/content/book-dataformat-appendix.html ============================================================================== --- websites/production/camel/content/book-dataformat-appendix.html (original) +++ websites/production/camel/content/book-dataformat-appendix.html Sat Aug 24 21:18:55 2013 @@ -427,6 +427,8 @@ You can setup which encoding to use when <p>The JAXB <a shape="rect" href="data-format.html" title="Data Format">Data Format</a> supports validation by marshalling and unmarshalling from/to XML. Your can use the prefix <b>classpath:</b>, <b><a shape="rect" class="external-link" href="file:*" rel="nofollow">file:*</a> or *http:</b> to specify how the resource should by resolved. You can separate multiple schema files by using the <b>','</b> character.</p> +<div class="panelMacro"><table class="infoMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/information.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Known issue</b><br clear="none">Camel 2.11.0 and 2.11.1 has a known issue by validation multiple <tt>Exchange</tt>'s in parallel. See <a shape="rect" class="external-link" href="https://issues.apache.org/jira/browse/CAMEL-6630">CAMEL-6630</a>. This is fixed with Camel 2.11.2/2.12.0.</td></tr></table></div> + <p>Using the Java DSL, you can configure it in the following way:</p> <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ @@ -445,6 +447,15 @@ jaxbDataFormat.setSchema("classpath:pers ]]></script> </div></div> +<p>Camel will create and pool the underling <tt>SchemaFactory</tt> instances on the fly, because the <tt>SchemaFactory</tt> shipped with the JDK is not thread safe.<br clear="none"> +However, if you have a <tt>SchemaFactory</tt> implementation which is thread safe, you can configure the JAXB data format to use this one:</p> +<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ +JaxbDataFormat jaxbDataFormat = new JaxbDataFormat(); +jaxbDataFormat.setSchemaFactory(thradSafeSchemaFactory); +]]></script> +</div></div> + <h3><a shape="rect" name="BookDataFormatAppendix-Dependencies"></a>Dependencies</h3> Modified: websites/production/camel/content/book-in-one-page.html ============================================================================== --- websites/production/camel/content/book-in-one-page.html (original) +++ websites/production/camel/content/book-in-one-page.html Sat Aug 24 21:18:55 2013 @@ -11822,6 +11822,8 @@ You can setup which encoding to use when <p>The JAXB <a shape="rect" href="data-format.html" title="Data Format">Data Format</a> supports validation by marshalling and unmarshalling from/to XML. Your can use the prefix <b>classpath:</b>, <b><a shape="rect" class="external-link" href="file:*" rel="nofollow">file:*</a> or *http:</b> to specify how the resource should by resolved. You can separate multiple schema files by using the <b>','</b> character.</p> +<div class="panelMacro"><table class="infoMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/information.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Known issue</b><br clear="none">Camel 2.11.0 and 2.11.1 has a known issue by validation multiple <tt>Exchange</tt>'s in parallel. See <a shape="rect" class="external-link" href="https://issues.apache.org/jira/browse/CAMEL-6630">CAMEL-6630</a>. This is fixed with Camel 2.11.2/2.12.0.</td></tr></table></div> + <p>Using the Java DSL, you can configure it in the following way:</p> <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ @@ -11840,6 +11842,15 @@ jaxbDataFormat.setSchema("classpath:pers ]]></script> </div></div> +<p>Camel will create and pool the underling <tt>SchemaFactory</tt> instances on the fly, because the <tt>SchemaFactory</tt> shipped with the JDK is not thread safe.<br clear="none"> +However, if you have a <tt>SchemaFactory</tt> implementation which is thread safe, you can configure the JAXB data format to use this one:</p> +<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ +JaxbDataFormat jaxbDataFormat = new JaxbDataFormat(); +jaxbDataFormat.setSchemaFactory(thradSafeSchemaFactory); +]]></script> +</div></div> + <h3><a shape="rect" name="BookInOnePage-Dependencies"></a>Dependencies</h3> Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/jaxb.html ============================================================================== --- websites/production/camel/content/jaxb.html (original) +++ websites/production/camel/content/jaxb.html Sat Aug 24 21:18:55 2013 @@ -264,6 +264,8 @@ You can setup which encoding to use when <p>The JAXB <a shape="rect" href="data-format.html" title="Data Format">Data Format</a> supports validation by marshalling and unmarshalling from/to XML. Your can use the prefix <b>classpath:</b>, <b><a shape="rect" class="external-link" href="file:*" rel="nofollow">file:*</a> or *http:</b> to specify how the resource should by resolved. You can separate multiple schema files by using the <b>','</b> character.</p> +<div class="panelMacro"><table class="infoMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/information.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Known issue</b><br clear="none">Camel 2.11.0 and 2.11.1 has a known issue by validation multiple <tt>Exchange</tt>'s in parallel. See <a shape="rect" class="external-link" href="https://issues.apache.org/jira/browse/CAMEL-6630">CAMEL-6630</a>. This is fixed with Camel 2.11.2/2.12.0.</td></tr></table></div> + <p>Using the Java DSL, you can configure it in the following way:</p> <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ @@ -282,6 +284,15 @@ jaxbDataFormat.setSchema("classpath:pers ]]></script> </div></div> +<p>Camel will create and pool the underling <tt>SchemaFactory</tt> instances on the fly, because the <tt>SchemaFactory</tt> shipped with the JDK is not thread safe.<br clear="none"> +However, if you have a <tt>SchemaFactory</tt> implementation which is thread safe, you can configure the JAXB data format to use this one:</p> +<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ +JaxbDataFormat jaxbDataFormat = new JaxbDataFormat(); +jaxbDataFormat.setSchemaFactory(thradSafeSchemaFactory); +]]></script> +</div></div> + <h3><a shape="rect" name="JAXB-Dependencies"></a>Dependencies</h3>