You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by AHardy <al...@db.com> on 2009/03/16 15:39:43 UTC
process() not called when mime type in Base64
Why is process() component in pipeline not called for route B?
public class myApp extends SpringRouteBuilder {
public static void main(String[] args) {
new Main().run(args);
}
public void configure() {
from("imap:mailhostA").process(new
AttachmentProcessor("A")).to("bean:translateA").to("jms:queue:output")
from("imap:mailhostB").process(new
AttachmentProcessor("B")).to("bean:translateB").to("jms:queue:output")
}
}
On execution I get correct output message on both routes. Except route B
never calls process() in pipeline. The only difference is Base64 encoded
mime type. On receiving email the following convertors as automatically
selected by camel.
route A: Converting javax.mail.internet.MimeMultipart
route B: Converting com.sun.mail.util.BASE64DecoderStream
--
View this message in context: http://www.nabble.com/process%28%29-not-called-when-mime-type-in-Base64-tp22539655p22539655.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
Re: process() not called when mime type in Base64
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Can you see the MailHtmlAttachmentTest unit test for inspiration.
It does a send and receive a HTML mail with attachment.
On Mon, Mar 16, 2009 at 5:16 PM, Claus Ibsen <cl...@gmail.com> wrote:
> On Mon, Mar 16, 2009 at 4:38 PM, AHardy <al...@db.com> wrote:
>>
>>
>> Correction, the process() component is called! The Base64 convertor being
>> selected does not popluate Exchange.getIn.getAttachments. Is this correct?
> That could be. Can you try debugging the code and look for yourself what happens
>
>
>> --
>> View this message in context: http://www.nabble.com/process%28%29-not-called-when-mime-type-in-Base64-tp22539655p22540805.html
>> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Re: process() not called when mime type in Base64
Posted by Claus Ibsen <cl...@gmail.com>.
On Mon, Mar 16, 2009 at 4:38 PM, AHardy <al...@db.com> wrote:
>
>
> Correction, the process() component is called! The Base64 convertor being
> selected does not popluate Exchange.getIn.getAttachments. Is this correct?
That could be. Can you try debugging the code and look for yourself what happens
> --
> View this message in context: http://www.nabble.com/process%28%29-not-called-when-mime-type-in-Base64-tp22539655p22540805.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Re: process() not called when mime type in Base64
Posted by AHardy <al...@db.com>.
Correction, the process() component is called! The Base64 convertor being
selected does not popluate Exchange.getIn.getAttachments. Is this correct?
--
View this message in context: http://www.nabble.com/process%28%29-not-called-when-mime-type-in-Base64-tp22539655p22540805.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.