camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Not able to define processor in Camel
Date Fri, 25 Jul 2014 07:31:55 GMT
Hi

See this example and its source code how its done
http://camel.apache.org/console-example.html

On Fri, Jul 25, 2014 at 9:20 AM, nettome <gsharma84@gmail.com> wrote:
> Yes, I'm able to read the file..
>
> System.out.println(file.getName());
> InputStream in = new FileInputStream(file);
> routes = context.loadRoutesDefinition(in);
> context.addRouteDefinitions(routes.getRoutes());
>
> in the above code, I'm getting my route.xml file defined as below -
> <routes xmlns="http://camel.apache.org/schema/spring">
>     <route id="fromFile">
>         <from uri="file:/data/inbox?noop=ture"/>
>         <to uri = "class:com.ericsson.pmed.validator.parser.JsonParser" />
>         <to uri="cache:default" />
>     </route>
>
> </routes>
>
>
> but, my CacheComponentProducer is not invoked.
> Also, when I'm doing the same thing in a java program through JAVA DSL, its
> working. My CacheComponentProducer is getting called.
>
> where should i look for it...
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-define-processor-in-Camel-tp5754376p5754431.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@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/

Mime
View raw message