This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 045b402  CAMEL-15697: camel-joor - Camel expression langauge using 
jOOR runtime java compiled.
045b402 is described below

commit 045b4024d9aebabda1f965f7ba78d56e9bc23415
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Oct 18 10:23:48 2020 +0200

    CAMEL-15697: camel-joor - Camel expression langauge using jOOR runtime java 
compiled.
---
 components/camel-joor/src/main/docs/joor-language.adoc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/components/camel-joor/src/main/docs/joor-language.adoc 
b/components/camel-joor/src/main/docs/joor-language.adoc
index 0088364..1fe0ca5 100644
--- a/components/camel-joor/src/main/docs/joor-language.adoc
+++ b/components/camel-joor/src/main/docs/joor-language.adoc
@@ -78,7 +78,7 @@ And then in the 2nd statement we return a value whether the 
user is `null` or no
 [source,java]
 ----
 from("seda:orders")
-  .transform().joor("Object user = message.getHeader(\"user\"); return user != 
null ? \"User: \" + user : \"No user exists\";")
+  .transform().joor("var user = message.getHeader(\"user\"); return user != 
null ? \"User: \" + user : \"No user exists\";")
   .to("seda:user");
 ----
 
@@ -87,7 +87,7 @@ Notice how we have to quote strings in strings, and that is 
annoying, so instead
 [source,java]
 ----
 from("seda:orders")
-  .transform().joor("Object user = message.getHeader('user'); return user != 
null ? 'User: ' + user : 'No user exists';")
+  .transform().joor("var user = message.getHeader('user'); return user != null 
? 'User: ' + user : 'No user exists';")
   .to("seda:user");
 ----
 
@@ -130,6 +130,9 @@ The code that you can write is therefore limited to a 
number of Java statements.
 The supported runtime is intended for Java standalone, Spring Boot, Camel 
Quarkus and other microservices runtimes.
 It is not supported in OSGi, Camel Karaf or any kind of Java Application 
Server runtime.
 
+jOOR does not support runtime compilation with Spring Boot using _fat jar_ 
packaging (https://github.com/jOOQ/jOOR/issues/69),
+it works with exploded classpath.
+
 == Dependencies
 
 To use scripting languages in your camel routes you need to add a

Reply via email to