RE: Poll enrich with mail component will lose attachments

2022-09-01 Thread Daniel Langevin
Hello Jane, you say you don't have an attachment, did you make sure you got at least a message body ??? Because the problem may come from the PollEnrich. Regards, Daniel -Message d'origine- De : Mi Jane 米静 Envoyé : 1 septembre 2022 00:31 À : users@camel.apache.org Objet : RE: Poll

RE: Poll enrich with mail component will lose attachments

2022-09-01 Thread Daniel Langevin
Hi Jane, I make a little test with my environment Camel version 3.14.3 running into karaf 4.3.3 Here a simple rest service extract from a blueprint deployment and it works very well, with and without an attachment TTT - Poll imap read With PollEnrich imaps://{{SHQ_imap_s

Deadlock when concurrently calling addRoutes/removeRoute

2022-09-01 Thread Gerda Ilger
Dear Camel Community, We ran into a deadlock when concurrently adding and removing routes. We're dynamically adding and removing routes, whose (ftp) consumers sometimes take a longer time to start up, and observed the following: * (Default/Abstract)CamelContext.addRoutes -> DefaultCamelContext.a

Re: Deadlock when concurrently calling addRoutes/removeRoute

2022-09-01 Thread Claus Ibsen
Hi Do you own locking if you do concurrent model changes to Camel On Thu, Sep 1, 2022 at 6:21 PM Gerda Ilger wrote: > Dear Camel Community, > > We ran into a deadlock when concurrently adding and removing routes. > > We're dynamically adding and removing routes, whose (ftp) consumers > sometime

RE: Poll enrich with mail component will lose attachments

2022-09-01 Thread Mi Jane 米静
Hi Daniel, you say you don't have an attachment, did you make sure you got at least a message body ??? Because the problem may come from the PollEnrich. Jane: Yes. I got the message body but no attachment. It's working well if I use only mail consumer, no matter which version of camel. The prob

templated route intercept

2022-09-01 Thread Nikolay Dechev
Hello Team, I've posted a question on the chat a while back but still no answer. Can someone, please help with that? routeTemplate("test-template") .from("timer://foo?fixedRate=true&period=6") .log(LoggingLevel.INFO, "templated route") interceptFrom().log(LoggingLevel.INFO, "interceptor tri

Re: Poll enrich with mail component will lose attachments

2022-09-01 Thread Claus Ibsen
Hi Can you try testing with 3.18.x On Wed, Aug 31, 2022 at 12:41 PM Mi Jane 米静 wrote: > Dear community, > > When I used Camel 3.11, poll enrich with mail component worked well and I > could get the mail attachments. > When I changed to Camel 3.16 for other reasons, I could get the mail but I >

Re: Moving to .error from

2022-09-01 Thread Claus Ibsen
You can also just use onExceptionOccurred processor and do any custom logging from java code in the processor if you are attempting to do some custom logging via onException On Wed, Aug 31, 2022 at 12:41 PM Jozef Bouda wrote: > Thank you, Claus. Using handled=false returns to aplication log fail

Re: templated route intercept

2022-09-01 Thread Claus Ibsen
Hi It does not make as much sense to use intercept in templates as intercept is really for global scoped https://camel.apache.org/components/3.18.x/eips/intercept.html Also its a feature that is complex and a candidate for removal to make the DSL and routing engine better. On Fri, Sep 2, 2022

Re: templated route intercept

2022-09-01 Thread ski n
@Nikolay What are you trying to accomplish functionally? On Fri, Sep 2, 2022 at 8:02 AM Claus Ibsen wrote: > Hi > > It does not make as much sense to use intercept in templates as intercept > is really for global scoped > https://camel.apache.org/components/3.18.x/eips/intercept.html > > Also it

Re: Deadlock when concurrently calling addRoutes/removeRoute

2022-09-01 Thread Gerda Ilger
Hi Claus, Yes, we're now doing our own locking - essentially just straightening out the order of locks Camel will need later on in our code. It feels wrong, though: CamelContext is already putting a lot of effort into protecting addRoutes/removeRoute-calls. Streamlining the order in which locks ar