Sorry, I was not clear enough..
As as example, using 1.5 for below scenario, handling attachments is
difficult.
from("activemq:some.queue")
.to("velocity:someTemplate.vm")
.to("smtp://sendm...@localhost")
While client sends the message with attachments, since those are not
supported by JMS component, it will get lost. So 2 options, either you send
attachments as body or headers. JMS component only supports primitive
headers so adding attachment is ruled out. If you send attachment as body,
you have to make sure attachments are set in headers back again otherwise
velocity component will overwrite it and would be lost.
I hope I am talking sane here, and have not missed something obvious :)
Claus Ibsen-2 wrote:
>
> Hi
>
> Can you be a bit more specific? Attachements is not supported natively
> by many transports/protocols.
> So I would like to know how and where you use it?
>
>
>
> On Fri, Jul 24, 2009 at 1:15 AM, tide08<[email protected]> wrote:
>>
>> I was wondering if attachments would be handled graciously across all the
>> components in 2.0. Currently in 1.5 I have to juggle up attachments from
>> headers to body depending on components. It is kind of hard to deal with
>> attachments, should we expect better support in 2.0?
>>
>> Thanks!
>> --
>> View this message in context:
>> http://www.nabble.com/Attachment-support-in-2.0-tp24636245p24636245.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
>
--
View this message in context:
http://www.nabble.com/Attachment-support-in-2.0-tp24636245p24660801.html
Sent from the Camel - Users mailing list archive at Nabble.com.