camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Läubrich (JIRA) <>
Subject [jira] [Commented] (CAMEL-8069) Provide xml component to add attachments
Date Fri, 21 Nov 2014 11:19:33 GMT


Christoph Läubrich commented on CAMEL-8069:

well it might be rarely used because its atm alittle bit hard to use. IMO it would also be
okay to have a processor that could be used as a bean instead of a "special" tag or something.
Beside thus, doing this via script languages is not very compfortable.

Having such a thing prebuild into camel would make things like, reading from a file or report
generator and send this to one or more mail accounts attaching it to mail (e.g. billing to
customer) much more easy and understandable instead of forching one to write custom code.

And such a use case is I think more likeley than "rare"...

> Provide xml component to add attachments
> ----------------------------------------
>                 Key: CAMEL-8069
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Christoph Läubrich
> Currently you can only add attachments from java or scripting code.
> It would be nice to have something like addAttachment (like addHeader) for the XML, so
you can define (and add) attachments by:
> - supply name + file by header values (->FileDataSource)
> - supply URL by header values (->URLDataSource)
> - use the body of the input message (Inputstream, byte[])
> This would allow for easier and uniform handling of attachments e.g. in the mail component.

This message was sent by Atlassian JIRA

View raw message