#1 I want to see the whole message in the log file or console, including
headers, attachments and body.
#2 I don't want the log pollute my routes, like this
from(..).log(...).bean(...).log(...).to(...)
Log is not the business logic of my routes.
I already read the section of logEIP from camel w
Does camel provide any easy way to move the file attachment to the message
body? Any example?
Or I have to deal with the api like getExhange, getIn, getAttachments...
which I try not to do.
Thanks a lot!
--
View this message in context:
http://camel.465427.n5.nabble.com/Can-I-split-attachments-
Yes, I already read that section before I posted my question. The problem is
that after splitting, the attachment is still in attachment of the message.
My attachment in email is csv file and I want to unmarshall them, like this
from(email address).split(new
SplitAttachmentsExpression()).unmarsha
I need poll emails and then process the attachments.
I saw some code like this in RouterBuilder
from("direct:start")
.split(body())
.log("Split line ${body}")
.to("mock:split");
What i want to do is
from("email address")
.split(attachments())
.to("...");
Unfortunately, attachments() is n
Thanks!
You are right :)
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-post-to-restful-service-in-camel-routes-tp5714698p5714789.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I need get data from csv file and then post it to a external restful service.
My route is like this
from("file:data/inbox/?fileName=sample.csv&noop=true").
unmarshal().csv()
.split(body())
.bean(new MyBean())
.setHeader(Exchange.HT