[ 
https://issues.apache.org/jira/browse/CAMEL-8237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14282596#comment-14282596
 ] 

Benjamin Habegger commented on CAMEL-8237:
------------------------------------------

Well, we had our own implementation of the org.apache.camel.spi.DataFormat 
interface we were using by creating a bean and referencing it using the rest 
jsonDataFormat configuration.

In our spring xml file:

<bean id="myDataFormat">
<!-- etc. -->
</bean>

In our java RouteBuilder:

rest().jsonDataFormat("myDataFormat")
 // etc. 
;

>From what, I understand, we don't have any way to use a completely custom 
>DataFormat implementation where as this was possible before. From what I 
>understand the dataFormatProperty only allows to configure an existing 
>dataFormat implementation. Am I wrong ?

Benjamin


> Regression: no longer possible to use a custom DataFormat bean in rest 
> configuration
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-8237
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8237
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.14.1
>            Reporter: Benjamin Habegger
>
> Previously in version 2.14.0 it was possible to define a dataFormat as a 
> spring bean (as decribed in http://camel.apache.org/data-format.html) and set 
> the rest configuration to use this custom dataformat.
> Since version 2.14.1, defining such a dataformat and configuring rest to use 
> it  leads to : java.lang.IllegalArgumentException: JsonDataFormat name: json 
> must not be an existing bean instance from the registry



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to