sample camel program

2013-05-21 Thread nettome
Hi, I'm new to camel and Im trying to create a sample program in eclipse ide. However, i'm unable to do that. Im referring to spring in action book. Please can anyone help me with steps needed to make an app in maven using eclipse. Thanks -- View this message in context: http://camel.465427.n

Not able to define processor in Camel

2014-07-24 Thread nettome
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.org/schema/spring";> Code to load the X

Re: Not able to define processor in Camel

2014-07-24 Thread nettome
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>, -

Re: Not able to define processor in Camel

2014-07-24 Thread nettome
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

Re: Not able to define processor in Camel

2014-07-24 Thread nettome
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.

Re: Not able to define processor in Camel

2014-07-25 Thread nettome
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