Author: buildbot Date: Fri Aug 30 08:18:54 2013 New Revision: 876698 Log: Production update by buildbot for camel
Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/dozer-type-conversion.html Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/dozer-type-conversion.html ============================================================================== --- websites/production/camel/content/dozer-type-conversion.html (original) +++ websites/production/camel/content/dozer-type-conversion.html Fri Aug 30 08:18:54 2013 @@ -219,6 +219,26 @@ new DozerTypeConverterLoader(camelContex ]]></script> </div></div> +<h4><a shape="rect" name="DozerTypeConversion-ConfiguringinOSGiblueprint"></a>Configuring in OSGi blueprint</h4> +<p><b>Available as of Camel 2.12.1</b></p> + +<p>When using Dozer with OSGi Blueprint then its works better by configuring dozer using the <tt>org.apache.camel.converter.dozer.DozerBeanMapperConfiguration</tt> instead of <tt>org.dozer.DozerBeanMapper</tt>, as shown below:</p> + +<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> +<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[ +<!-- the registry will be scanned and 'mapper' below will be found and installed --> +<bean id="dozerConverterLoader" class="org.apache.camel.converter.dozer.DozerTypeConverterLoader" /> + +<bean id="mapper" class="org.apache.camel.converter.dozer.DozerBeanMapperConfiguration"> + <property name="mappingFiles"> + <list> + <value>mapping.xml</value> + </list> + </property> +</bean> +]]></script> +</div></div> + <p>Now, where necessary, Camel will use Dozer to do conversions; In our case between the new domain and legacy Customer types e.g. </p> <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">