CSimple
JVM since1.5.0 Native since1.5.0
Compiled Simple language
Maven coordinates
Or add the coordinates to your existing project:
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-csimple</artifactId>
</dependency>
Check the User guide for more information about writing Camel Quarkus applications.
Camel Quarkus limitations
CSimple language is supported only in
-
XML DSL
-
Java DSL when implemented in a class extending
org.apache.camel.builder.RouteBuilder
The compilation of CSimple scripts happens at build time. To be able to discover the scripts in the route definitions,
those definitions need to get assembled at build time. When extending
org.apache.camel.builder.RouteBuilder
, this basically means instantiating your RouteBuilder
, setting
a fake CamelContext
instance on it and calling its configure()
method. It may fail if your configure()
method attempts to access some resource that is only available at runtime.
You can use the quarkus.camel.csimple.on-build-time-analysis-failure
configuration parameter to decide
what should happen in such cases. Possible values are warn
(default), fail
or ignore
.
CSimple language will not work on Camel Quarkus if used in a |