-1
是否有推薦的方法來在apache駱駝中使用多個碼頭端點?如何使用多個Jetty端點?
我正在使用下面的代碼。我不確定這是否正確。
import org.apache.camel.builder.RouteBuilder;
public class CamelPocRoute extends RouteBuilder {
public void configure() {
from("jetty:http://localhost:8111/nordic/Something1")
.to("file://{{Somepath}}/camelpoc/jetty/Something1");
from("jetty:http://localhost:8111/nordic/Something2")
.to("file://{{Somepath}}/camelpoc/jetty/Something2");
from("jetty:http://localhost:8111/nordic/Something3")
.to("file://{{Somepath}}/camelpoc/jetty/Something3");
}
}
參見:http://camel.apache.org/jetty.html