Hi

You code had a sleep 4 sec that is not a lot of time.

See how to keep running camel
http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html

On Thu, Jul 24, 2014 at 3:09 PM, nettome <gsharm...@gmail.com> wrote:
> Hi Claus,
> I did that and that has removed the error, thanks!
>
> check the xml below -
>
> <routes xmlns="http://camel.apache.org/schema/spring";>
>     <route id="fromFile">
>         <from uri="file:/data/inbox?noop=ture"/>
>         <to uri = "class:com.validator.parser.JsonParser" />
>         <to uri="cache:default" />
>     </route>
>
> </routes>
>
> But, Now i face a new problem... the way the above route should work is that
> I read a file. do some processing on it and save that in a Cache. The cache
> component is a component that I created not the camel-cache component.
>
> JsonParser is a Processor that is suppose to process the file(json file) and
> the cache then would store the proceseed message most prob a JsonNode.
>
> My processor code (JsonParser) is not getting hit now, how to proceed around
> that? Neither is it gng to the CacheComponentProducer I created however I
> can see the sysout in my CacheComponent on the console.
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Not-able-to-define-processor-in-Camel-tp5754376p5754386.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to