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 <gsharm...@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: 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