pekko/akka-docs/java/code/docs/camel/CustomRouteBuilder.java
RayRoestenburg ee4a8afee9 Changed akka camel URI pattern to akka ActorPath pattern, like akka://system/user/someactor
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
2012-07-20 20:49:16 +02:00

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