Re: File Poller of CSV

2013-12-28 Thread keepcl123
I did try it .. and got on the marshal part: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: java.lang.String to the required type: java.util.Map with value ILS [END] org.apache.c

Re: File Poller of CSV

2013-12-28 Thread Richard Kettelerij
Yep, doHandleCsvData(@Body List> csvData, @Header("CamelFileName") String fileName) should be about right. The rest of the route also looks good. But why ask if the syntax is right, just try it :) On Sat, Dec 28, 2013 at 9:37 PM, keepcl123 wrote: > Hi, > > my doHandleCsvData signiture is : > >

Re: File Poller of CSV

2013-12-28 Thread keepcl123
Hi, my doHandleCsvData signiture is : doHandleCsvData(List> csvData) so you are saying I have to so this : doHandleCsvData(@Body List> csvData, @Header("CamelFileName") String fileName) ? And another question : how do I write the exchange beck to a csv file ? Is this the right syntax:

Re: File Poller of CSV

2013-12-28 Thread Richard Kettelerij
Add an extra parameter to your doHandleCsvData() method and annotate it with @Header("CamelFileName"). Like this: public class MyCsvHandler { public void doHandleCsvData(@Body String body, @Header("CamelFileName") String fileName) { // your custom logic } } See the Bean Binding page

File Poller of CSV

2013-12-28 Thread keepcl123
Hi , I want to do File Poller of CSV, then unmarshaling.like this: But I also want to get *also *the *file name* in my bean. How do I do this ? Thx -- View this message in context: http://camel.465427.n5.nabble.com/File-Poller-of-CSV-tp5745296.html Sent

Re: Zipping multiple files to one Zip-File

2013-12-28 Thread Pontus Ullgren
Here is a AggregationStrategy, that I'm using in a project, that aggregates all incoming messages into a ZIP file. It uses a temporary file to store the data in between messages. https://gist.github.com/ullgren/8160215 Best regards Pontus On Fri, Dec 27, 2013 at 8:23 PM, alex wrote: > Thank y

Re: writing a csv file

2013-12-28 Thread keepcl123
public void doHandleCsvData(List> csvData) { } -- View this message in context: http://camel.465427.n5.nabble.com/writing-a-csv-file-tp5745260p5745293.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Zipping multiple files to one Zip-File

2013-12-28 Thread alex
Thank you very much, i'll try to aggregate the messages and zip them. Let you know about my progress soon :-) -- View this message in context: http://camel.465427.n5.nabble.com/Zipping-multiple-files-to-one-Zip-File-tp5745128p5745289.html Sent from the Camel - Users mailing list archive at Nabb

Re: File component consumer to consume files by timestamp based

2013-12-28 Thread rrajen2
The solution for the first route listed above has evolved as below with some issues. Please assist me in fixing it from("file:{{fmsSys.root.File.InProgress.In}}?noop=true&recursive=true&filter=#myInFMSDirectoryFilter&antInclude={{fmsSys.root.ClientFile.Mailbox.AntIncludeDir}}&delay=500").routeId("

Re: java.lang.ArrayIndexOutOfBoundsException when receiving from JMS

2013-12-28 Thread Sam369
Any updates on this? i am facing the same issue. -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-ArrayIndexOutOfBoundsException-when-receiving-from-JMS-tp5744262p5745288.html Sent from the Camel - Users mailing list archive at Nabble.com.