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 wrote:
> Yes, I'm able to read the file..
>
> System.out.println(file.getName());
> InputStream in = new FileInputStream(file);
> routes = context.loadRoutes
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 -
http://camel.apache.or
And you are sure there is a file for the Camel route to pickup?
On Thu, Jul 24, 2014 at 6:24 PM, nettome wrote:
> I increased the time to 20 seconds still I my producer is not called.
> I don't think that's the problem.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.c
I increased the time to 20 seconds still I my producer is not called.
I don't think that's the problem.
--
View this message in context:
http://camel.465427.n5.nabble.com/Not-able-to-define-processor-in-Camel-tp5754376p5754406.html
Sent from the Camel - Users mailing list archive at Nabble.com.
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 wrote:
> Hi Claus,
> I did that and that has removed the error, thanks!
>
> check the xm
Hi Claus,
I did that and that has removed the error, thanks!
check the xml below -
http://camel.apache.org/schema/spring";>
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 sa
Ah you load routes from an xml file, then you cannot define spring beans etc.
You can use the class component
http://camel.apache.org/class
And instead of then use where the uri is using the
class component
And then remove the
On Thu, Jul 24, 2014 at 2:37 PM, nettome wrote:
> Hi Claus,
> I t
Hi Claus,
I tried that as below -
http://camel.apache.org/schema/spring";>
but then I'm getting the following error -
unexpected element (uri:"", local:"bean"). Expected elements are
<{http://camel.apache.org/schema/spring}aggregate>,
-
Hi
should be outside
On Thu, Jul 24, 2014 at 2:22 PM, nettome wrote:
> Hi,
> I'm new to Camel and learning it step by step.
> I have a scenario where i have to process a task in a route. I'm creating a
> XML file and loading the routes from it.
> Below is my xml file -
>
> http://camel.apache