I think I got a solution for this. I explicitly created a List of Map and
then marshalling it
List<Map<String, Object>> pojoListMap = new ArrayList<Map<String,
Object>>();
Map<String, Object> pojoMap = null;
for(POJO pojo : pojoList) {
pojoMap = new HashMap<String, Object>();
pojoMap.put(pojo.getClass().getName(), pojo);
pojoListMap.add(pracMap);
}
--
View this message in context:
http://camel.465427.n5.nabble.com/Write-Collection-of-FixedLengthRecord-to-Flat-File-tp5764720p5764786.html
Sent from the Camel - Users mailing list archive at Nabble.com.