camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From condreynl <>
Subject Using file URI's correctly
Date Mon, 29 Sep 2014 18:39:49 GMT
I have a simple route for doing file normalization tasks. I have a working
version that goes something like:

myRoute extends RouteBuilder(){

I have a class that has a CamelContext variable. The implementation looks
just like what I found in the documentation:

CamelContext context = new DefaultCamelContext();
context.addRoutes(new myRoute());
File myFile = new File("filepath");


Whenever I replace direct:normalize with a file URI, nothing happens. The
console tells me that the route has begun consuming from the file endpoint,
but then immediately disconnects without running the route. For example, my
configure method looks like:
from(file URI).process().to(file URI)

and my context class looks like

//initialize context to default 
context.addRoutes(new myRoute);

Have I used the file URI's correctly? Here is an example of one:

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message