camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbhaya <>
Subject Camel JacksonDataFormat configuration in Spring XML
Date Sat, 18 May 2013 17:17:41 GMT

I am working on JSON marshalling/unmarshalling and need to exclude certain
POJO fields from marshalling.
I have referred to the following link:

It says that JSON View needs to be used.

And after that we need to specify the following in the java file.

JacksonDataFormat ageViewFormat = new JacksonDataFormat(TestPojoView.class,

I want to specify the above configuration in spring xml file. I know that we
can specify the dataformats in the following way:
 <json id="jack" library="Jackson"
But  I want to configure the JSON view(JacksonDataFormat ageViewFormat = new
JacksonDataFormat(TestPojoView.class, Views.Age.class)) in the spring xml

Please let me know how to do that.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message