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
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 :
>
>
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:
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
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
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
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.
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
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("
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.
10 matches
Mail list logo