Hi,
camel-script is deprecated in 2.x and removed in 3.x with CAMEL-13113 ( https://issues.apache.org/jira/browse/CAMEL-13113 ). This is because Nashorn engine is deprecated in JDK11 ( https://openjdk.java.net/jeps/335 ) and is scheduled to be removed from next JDK release ( https://openjdk.java.net/jeps/372 ). Currently there is no replacement in Apache Camel.

Dne 3.3.2020 v 19:27 Reji Mathews napsal(a):
Hello community

I see that JavaScript eip is marked deprecated in 
https://camel.apache.org/components/2.x/javaScript-language.html . Is there 
another suggestive approach to writing any JavaScript to manipulate / do some 
custom processing on  camel exchange object?

My requirement is to allow application to pull in a remote JavaScript module 
and plug it into camel routes.


Something like how it's done for groovy with following DSL -

.script().groovy("//script content goes here...").to("log:script output is 
${body}")...

Cheers
Reji Mathews


Reply via email to