in jbang/local-jar/foo.java [12:26]
public void configure() throws Exception {
// Write your routes here, for example:
from("timer:java?period={{time:1000}}").routeId("java")
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
// use code from local-jar (commons-lang)
String result = SystemUtils.getUserHome().toString();
exchange.getMessage().setBody(result);
}
})
.log("${body}");
}