Using camel to FTP individual file and handle exceptions

2015-03-07 Thread raj
Hi: I am new to camel. I am trying to use camel to FTP individual files and handle any exceptions. In the below unit test code, when the FTP connection fails due to invalid host, I want my unit test exception block to run and the unit test should fail. Currently, I see camel exceptions in the l

aggregationStrategy - passing last value to next aggregate

2014-02-04 Thread Vinu Raj
I am using a custom aggregationStrategy to group time ordered records that are coming in a file based on timestamp. One aggregation is considered completed when there is a certain time delay (say more than 2 mins) between last record and current record. Example record 1, t1 record 2, t2 record 3,

Re: aggregationStrategy - passing last value to next aggregate

2014-02-04 Thread Vinu Raj
In that case there is a chance of loosing "in flight" messages right ? -- View this message in context: http://camel.465427.n5.nabble.com/aggregationStrategy-passing-last-value-to-next-aggregate-tp5746771p5746802.html Sent from the Camel - Users mailing list archive at Nabble.com.

File processing stops on bean invocation at times

2014-04-03 Thread Vinu Raj
I have a simple route as following from("file:{{input.dir}}?sortBy=file:name&include=.*.data&move={{done.dir}}&delay={{poll.delay}}") .id("FileConsumer") .log("Processing file ${file:name}") .beanRef("FileBinder","bind") .beanRef("PU","execute") .log("Comple

Re: File processing stops on bean invocation at times

2014-04-03 Thread Vinu Raj
My mistake, it is Apache Camel 2.12.2. Got the issue resolved. FileBinder was waiting for a resource which never got released. -- View this message in context: http://camel.465427.n5.nabble.com/File-processing-stops-on-bean-invocation-at-times-tp5749736p5749768.html Sent from the Camel - Users

Hot to stop a route using spring configuration and confused with the tag for it

2014-07-13 Thread Naveen Raj
Hi Guys, CamelContext.stop() stops your route where your route is not available right. What is the equivalent in spring configuration . I am confused with where as in the documentation it is mentioned here http://camel.apache.org/intercept.html

Re: Hot to stop a route using spring configuration and confused with the tag for it

2014-07-13 Thread Naveen Raj
Thanks Claus, I would like to know if there is any equivalent to the for Java DSL and CamelContext.stop() equivalent in Spring configuration? Thanks, Naveen Raj -- View this message in context: http://camel.465427.n5.nabble.com/Hot-to-stop-a-route-using-spring-configuration-and-confused

Remove headers behaves differently and not as expected

2014-07-18 Thread Naveen Raj
eader fourthCustomHeader the above removes all the header but does excludes the excludePattern value 2.13.1 Thanks, Naveen Raj -- View this message in context: http://

How to get all the properties in the exchange in spring configuration

2014-07-20 Thread Naveen Raj
Hi, In the spring configuration we use ${headers} in log to print all the headers in the exchange. Is there a similar way for printing all the properties in the log. Thanks, Naveen Raj -- View this message in context: http://camel.465427.n5.nabble.com/How-to-get-all-the-properties-in

RE: How to get all the properties in the exchange in spring configuration

2014-07-24 Thread Naveen Raj
I Agree. I was wondering that if there could be any like that . I checked all possibilities for this and found none. I wanted to cross check with community if I had missed any. It will be great that like ${headers} if ${properties} is also supported by simple Expression language. Thanks , Nave

Re: JAXB Data Format

2012-09-05 Thread Naveen Raj
Thanks, This helped me with the same issue i faced. thanks, Naveen Raj Balasubramaniam -- View this message in context: http://camel.465427.n5.nabble.com/Re-JAXB-Data-Format-tp5717522p5718669.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel XML Message Enrichment

2012-09-10 Thread Naveen Raj
Thanks all , Naveen Raj Balasubramaniam -- View this message in context: http://camel.465427.n5.nabble.com/HELP-required-Camel-XML-Message-Enrichment-tp5718525p5719072.html Sent from the Camel - Users mailing list

Re: Camel enrichment

2012-09-10 Thread Naveen Raj
Created a simple use case for enrichment http://camel.465427.n5.nabble.com/HELP-required-Camel-XML-Message-Enrichment-td5718525.html Thanks all, Naveen Raj Balasubramaniam -- View this message in context: http://camel.465427.n5.nabble.com/Camel-enrichment-tp5718573p5719073.html Sent from

Re: how to convert xml inti csv file?

2012-09-10 Thread Naveen Raj
hi, If your input is xml then you need to use unmarshall to convert the xml to objects. If that is the case you are trying use unmarshall instead of marshall Regards, Naveen -- View this message in context: http://camel.465427.n5.nabble.com/how-to-convert-xml-inti-csv-file-tp5718703p57

whether jaxb or dom or sax or stax....how to decide

2012-09-10 Thread Naveen Raj
hi, Can any one help me in deciding what to use for parsing and adding elements in to xml ...whether jaxb or dom or sax or stax or any other ...which is efficient Thanks, Naveen -- View this message in context: http://camel.465427.n5.nabble.com/whether-jaxb-or-dom-or-sax-or-stax-how-t

Re: whether jaxb or dom or sax or stax....how to decide

2012-09-11 Thread Naveen Raj
it is very long xml with atleast of 100 lines and Imagining the documents to have 30 attributes in each. -- View this message in context: http://camel.465427.n5.nabble.com/whether-jaxb-or-dom-or-sax-or-stax-how-to-decide-tp5719079p5719112.html Sent from the Camel - Users mailing list archive a

Re: whether jaxb or dom or sax or stax....how to decide

2012-09-11 Thread Naveen Raj
? and where is jaxb or DOM or SAX or stax is used at real time can anyone help. Thanks, Naveen Raj -- View this message in context: http://camel.465427.n5.nabble.com/whether-jaxb-or-dom-or-sax-or-stax-how-to-decide-tp5719079p5719160.html Sent from the Camel - Users mailing list archive at

Camel XML Message Enrichment

2012-09-02 Thread Naveen Raj
base.My priority is to insert the data in the xml message. Thanks, Naveen Raj Balasubramaniam -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XML-Message-Enrichment-tp5718525.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel enrichment

2012-09-03 Thread Naveen Raj
hi, The camel enrich processor needs an aggregation strategy to be implemented,where I need to implemented my own bean to enrich.The scenario that I want to implement is where an xml is inserted an element for which the data is from the database. This data from the database is queried based o

Re: Camel XML Message Enrichment

2012-09-03 Thread Naveen Raj
Thanks Christian and Santoshi...i will work on it and will get back... thanks, Naveen -- View this message in context: http://camel.465427.n5.nabble.com/HELP-required-Camel-XML-Message-Enrichment-tp5718525p5718576.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HELP required Camel XML Message Enrichment

2012-09-03 Thread Naveen Raj
Thanks for the help ..I will get back to inform the success Thanks, Naveen Raj -- View this message in context: http://camel.465427.n5.nabble.com/HELP-required-Camel-XML-Message-Enrichment-tp5718525p5718577.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel enrichment

2012-09-03 Thread Naveen Raj
regarding the same... thanks, Naveen Raj Balasubramaniam -- View this message in context: http://camel.465427.n5.nabble.com/Camel-enrichment-tp5718573p5718578.html Sent from the Camel - Users mailing list archive at Nabble.com.