Re: Templates mix xml and java builder

2022-11-25 Thread Babak Vahdat
Hi You can mix and match, example given this template in XML with the Id "myTemplate": https://github.com/apache/camel-examples/blob/main/examples/routetemplate-xml/src/main/resources/templates/my-route-templates.xml#L22 Could be instantiated as a route in Java DSL as in the other example here:

Re: Templates mix xml and java builder

2022-11-25 Thread Claus Ibsen
Hi You can mix any kind of DSLs you like. This example uses route configuration (but should work for route template as well), and have different DSLs https://github.com/apache/camel-examples/tree/main/examples/routes-configuration On Sat, Nov 26, 2022 at 12:28 AM Svend Ole Nielsen < svend-ole

Templates mix xml and java builder

2022-11-25 Thread Svend Ole Nielsen
Hi - I have been looking all over the documentation and been at Google, but nowhere has it been possible to dig some info up, so here goes: Would it be possible to define a template in XML and load it in a Java Routebuilder? Or is it xml only both template definition and route building? Regards

Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-25 Thread Mikael Koskinen
Hi, I have some issues when trying to export an integration to Quarkus runtime using Camel JBang if the integration uses kamelet:http-sink.The sample integration causing issues is available from here: https://gist.github.com/mikoskinen/71ce1d1ba5b5d7b690a4ec12af20e8ec The integration runs fine us

RE: DefaultErrorHandler not logging to specific log file

2022-11-25 Thread Tasi, Erne
Hi Claus, Thank you very much for the quick response. I assumed that one could use the dead letter channel as a workaround, but logically I thought it should be possible simply to set the logName or the loggerRef on the DefaultErrorHandler like it was the case with the LoggerErrorHandler. Hence

Re: DefaultErrorHandler not logging to specific log file

2022-11-25 Thread Claus Ibsen
Hi Use, dead letter channel to send the message to a log endpoint of your choice, such as log:error. That is essentially what the log error handler did. https://camel.apache.org/manual/error-handler.html On Fri, Nov 25, 2022 at 2:01 PM Tasi, Erne wrote: > Hello All, > > We are using Camel in K

DefaultErrorHandler not logging to specific log file

2022-11-25 Thread Tasi, Erne
Hello All, We are using Camel in Karaf and recently we upgraded Karaf to version 4.2.1 and camel to 3.18.3. I am not sure if it is a bug or if I am doing something wrong, but it seems as if when I want to use the DefaultErrorHandler to log errors to a specific log file it doesn't work anymore.

Re: Streamcaching and spooling

2022-11-25 Thread ski n
In addition to Simo I also encountered sometimes FileNotFoundException and other I think disk related issues like: org.apache.camel.RuntimeCamelException: Cannot reset stream from file tmp/camelcontext-ID_5ffdbadf852c8f0010034cb9/cos4845255624781072102.tmp What maybe also is possible is to set it

Re: Streamcaching and spooling

2022-11-25 Thread Simo Hakanen
On Fri, Nov 25, 2022 at 11:09 AM Michael Rambichler wrote: > Hi Claus, Bakab > > Thanks for your feedback. > The argument with the explicit decision is valid. But on the other hand > IMHO its better that the route fails immediately then running uncontrolled > OOM later in production. > > If you a

Re: Streamcaching and spooling

2022-11-25 Thread Michael Rambichler
Hi Claus, Bakab Thanks for your feedback. The argument with the explicit decision is valid. But on the other hand IMHO its better that the route fails immediately then running uncontrolled OOM later in production. If you agree with me I will make the JIRA/Pull Request for setting the default to t