Changing the Default Header Filter Strategy

2019-09-19 Thread Darius Cooper
I know I can set the HeaderFilterStrategy for a particular end-point, but... How does one override the DefaultHeaderFilterStrategy with a custom strategy that will apply to all routes? We are using Camel's Servlet Listener. Can we supply something in the configuration (documented here) to replace

R: Email to dead letter channel

2019-09-19 Thread Giovanni Condello
I see, i missed the formatting part and skipped right to the attachments. In this case, I would try something like was sugggested here: https://stackoverflow.com/questions/56577633/apache-camel-save-email-to-file-eml-using-routes e.g (tested locally) public void configure() throws Exception {

AW: Email to dead letter channel

2019-09-19 Thread Thomas.Thiele
No. The body is not stored as it come. But text only. Without formatting (e.g. RTF). I simply want to backup the original Email as eml in case of error. -Ursprüngliche Nachricht- Von: Condello, Giovanni Gesendet: Donnerstag, 19. September 2019 15:47 An: users@camel.apache.org Betreff:

Re: Email to dead letter channel

2019-09-19 Thread Condello, Giovanni
Hi, My guess is that the file component doesn't support the attachments API (as noted here: https://camel.apache.org/components/latest/mail-component.html#_sending_mail_with_attachment_sample ). One trick could be to route your deadLetterChannel to a direct route, and from there use: 1. the file

AW: own endpoint exmaple?

2019-09-19 Thread Thomas.Thiele
Thanks. Will look at it. -Ursprüngliche Nachricht- Von: Condello, Giovanni Gesendet: Donnerstag, 19. September 2019 13:55 An: users@camel.apache.org Betreff: Re: own endpoint exmaple? A couple of suggestions from someone that had to build a custom component: - Use the archetype to gene

Re: own endpoint exmaple?

2019-09-19 Thread Condello, Giovanni
A couple of suggestions from someone that had to build a custom component: - Use the archetype to generate a skelton, then modify the pom to integrate it back into your own structure. We did it and we found the process quite straightforward. - Find an existing camel component that works in a simil

AW: own endpoint exmaple?

2019-09-19 Thread Thomas.Thiele
Simply hide a complex monitoring (db-entries, log, etc.) with a simple call like "file://" "log:". I could use a bean or processor and I actually I had, but I thought its simplier so. For the caller (routedef) and for clean code. -Ursprüngliche Nachricht- Von: Omar Al-Safi Gesendet:

Re: own endpoint exmaple?

2019-09-19 Thread Omar Al-Safi
Hi Thomas, May I know what do you want to achieve here? The context of your problem can help us to know how can you move forward without much complexity involved. Regards, Omar On Thu, Sep 19, 2019, 13:20 wrote: > "Scaffolding your component through maven archetype" > > I think at the moment I

Email to dead letter channel

2019-09-19 Thread Thomas.Thiele
Hi, I send an email with formatting, html or rtf and a pdf as attachment. But in the dead letter file there is only plain text. How can I save the orginal email in case of exception? Code so far in configure(): errorHandler(deadLetterChannel(String.format("file://%s", EMAIL_DEADDIRECTORY)).useO

AW: own endpoint exmaple?

2019-09-19 Thread Thomas.Thiele
"Scaffolding your component through maven archetype" I think at the moment I didn’t know much about it. I really didn’t want to blow up pom only for a little endpoint. Or did I not get it? -Ursprüngliche Nachricht- Von: Alex Dettinger Gesendet: Donnerstag, 19. September 2019 10:20 A

Re: own endpoint exmaple?

2019-09-19 Thread Alex Dettinger
Hi Thomas, Did you figured it out ? From the code, it's hard to see what the issue could be: Do you extend DefaultComponent ? Do you call setProperties() in createEndpoint() ? and so on... If you have not used an archetype yet, then I would direct you back to Omar Al-Safi suggestion: Scaffol