Hi Claus, I tried that as below - <bean id= "jsonProcessor" class="com.ericsson.pmed.validator.parser.JsonParser" /> <routes xmlns="http://camel.apache.org/schema/spring"> <route id="fromFile"> <from uri="file:/data/inbox"/> <process ref="jsonProcessor" /> <to uri="cache:default"/> </route>
</routes> but then I'm getting the following error - unexpected element (uri:"", local:"bean"). Expected elements are <{http://camel.apache.org/schema/spring}aggregate>, -- View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-define-processor-in-Camel-tp5754376p5754380.html Sent from the Camel - Users mailing list archive at Nabble.com.