fixed some fixmes regarding using the reference.conf config Added some more java tests for custom routes with producers and consumers changed autoack to autoAck
18 lines
481 B
Java
18 lines
481 B
Java
package docs.camel;
|
|
//#CustomRoute
|
|
import akka.actor.ActorRef;
|
|
import akka.camel.internal.component.CamelPath;
|
|
import org.apache.camel.builder.RouteBuilder;
|
|
|
|
public class CustomRouteBuilder extends RouteBuilder{
|
|
private ActorRef responder;
|
|
|
|
public CustomRouteBuilder(ActorRef responder) {
|
|
this.responder = responder;
|
|
}
|
|
|
|
public void configure() throws Exception {
|
|
from("jetty:http://localhost:8877/camel/custom").to(CamelPath.toUri(responder));
|
|
}
|
|
}
|
|
//#CustomRoute
|