|
Akka/Scala example source code file (CustomRouteBuilder.java)
The CustomRouteBuilder.java Akka example source codepackage sample.camel.route; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBuilder; public class CustomRouteBuilder extends RouteBuilder { public void configure() throws Exception { from("direct:welcome").process(new Processor() { public void process(Exchange exchange) throws Exception { exchange.getOut().setBody(String.format("Welcome %s", exchange.getIn().getBody())); } }); } } Other Akka source code examplesHere is a short list of links related to this Akka CustomRouteBuilder.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.