Re: Functions in Camel

2024-01-09 Thread ski n
I believe that: - (Sub) routes are around 40% of the solution (Cause put logic in a separate route and call it from one or more other routes) - RouteTemplate are around 60% of the solution (Adding parameters and defaults that can be started multiple times) - Kameletes are around 80% of the solutio

Re: Functions in Camel

2024-01-08 Thread ski n
I also seem to recall that routeTemplates haven't all functionality from Kamelets, and you can't call all routeTemplates exactly the same from the Kamelet component, but maybe this is not a limitation anymore. btw In my own runtime (Assimbly) I do load all Kamelets by default, so they are straight

Re: Functions in Camel

2024-01-08 Thread ski n
Yeah, calling a Kamelet has the advantage that the subroute is dynamically created. - Still need the to, not a separate EIP. - Beginners would not search for "Kamelet", but function would be more common - You still need a from statement within the Kamelet - Kamelet is not really part of the route,

Re: Functions in Camel

2024-01-08 Thread Andrea Cosentino
It really seems the Kamelets' mission Il lun 8 gen 2024, 15:59 Pasquale Congiusti ha scritto: > Hi Raymond, > Can't be a Kamelet considered for such a feature? I think it's one of its > purposes as well. > > Pasquale. > > On Mon, Jan 8, 2024 at 3:21 PM ski n wrote: > > > Question/Discussion: >

Re: Functions in Camel

2024-01-08 Thread Pasquale Congiusti
Hi Raymond, Can't be a Kamelet considered for such a feature? I think it's one of its purposes as well. Pasquale. On Mon, Jan 8, 2024 at 3:21 PM ski n wrote: > Question/Discussion: > > Do you think "functions" in the Camel DSL make sense? > > Explanation: > > Say you have to following route: >

Functions in Camel

2024-01-08 Thread ski n
Question/Discussion: Do you think "functions" in the Camel DSL make sense? Explanation: Say you have to following route: from("direct:a") .setHeader("myHeader", constant("test")) .to("direct:b"); And then you have a similar route: from("direct:c") .setHeader("myHeader2", constant(

Re: How do I use xpath functions in Camel?

2011-12-09 Thread Raul Kripalani
> pom.xml: >> > >> > >> >org.apache.camel >> >camel-saxon >> > >> > >> > The examples in the Apache Camel: Xpath page show the use of Java code >> to >> > use Saxon. It is

Re: How do I use xpath functions in Camel?

2011-12-09 Thread Raul Kripalani
e examples in the Apache Camel: Xpath page show the use of Java code to > > use Saxon. It is possible to use Saxon in Spring XML versus Java methods? > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/How-do-I-use-xpath-functions-in-

Re: How do I use xpath functions in Camel?

2011-12-09 Thread Claus Ibsen
in Spring XML versus Java methods? > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-do-I-use-xpath-functions-in-Camel-tp5056913p5059406.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - F

Re: How do I use xpath functions in Camel?

2011-12-08 Thread MichaelAtSAG
use of Java code to use Saxon. It is possible to use Saxon in Spring XML versus Java methods? -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-use-xpath-functions-in-Camel-tp5056913p5059406.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How do I use xpath functions in Camel?

2011-12-08 Thread Raul Kripalani
>>> org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: >>> string(315). Reason: javax.xml.xpath.XPathExpressionException >>> >>> How do I write this xpath expression in Camel? >>> >>> Any help is greatly appreciated. >>

Re: How do I use xpath functions in Camel?

2011-12-07 Thread Claus Ibsen
                 string(315) >> >                 >> >         >> > >> > >> > >> > Error: >> > - >> > org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: >> > string(315). Reason: javax.xml.xpath.

Re: How do I use xpath functions in Camel?

2011-12-07 Thread MichaelAtSAG
xpath expression in Camel? > > > > Any help is greatly appreciated. > > > > Thanks! > > > > -- > > View this message in context: > > http://camel.465427.n5.nabble.com/How-do-I-use-xpath-functions-in-Camel-tp5056913p5056913.html > > S

Re: How do I use xpath functions in Camel?

2011-12-07 Thread Raul Kripalani
write this xpath expression in Camel? > > Any help is greatly appreciated. > > Thanks! > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-do-I-use-xpath-functions-in-Camel-tp5056913p5056913.html > Sent from the Camel - Users mailing list archive at Nabble.com. >

How do I use xpath functions in Camel?

2011-12-07 Thread MichaelAtSAG
iew this message in context: http://camel.465427.n5.nabble.com/How-do-I-use-xpath-functions-in-Camel-tp5056913p5056913.html Sent from the Camel - Users mailing list archive at Nabble.com.