如何使用多个 Jetty Endpoints?
How to use multiple Jetty Endpoints?
是否有在 apache camel 中使用多个码头端点的推荐方法?
我正在使用以下代码。不知道方法对不对
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");
}
}
我们以相同的方式使用多个码头端点。我推荐的一件事是将端点 uri 添加到 属性 文件。
from( endpoint( "{{from.endpoint.url}}" ) )
在我看来,您可以将这些端点视为具有多个操作的普通 Web 服务。这些操作中的每一个都有不同的路径。所以没有什么特别的。
是否有在 apache camel 中使用多个码头端点的推荐方法?
我正在使用以下代码。不知道方法对不对
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");
}
}
我们以相同的方式使用多个码头端点。我推荐的一件事是将端点 uri 添加到 属性 文件。
from( endpoint( "{{from.endpoint.url}}" ) )
在我看来,您可以将这些端点视为具有多个操作的普通 Web 服务。这些操作中的每一个都有不同的路径。所以没有什么特别的。