我的骆驼路由器:
<cxf:cxfEndpoint id="chdEndpoint"
address="http://0.0.0.0:8080/chd-esb/callService" endpointName="s:RealServerImplPort"
serviceName="s:RealServerImplService" wsdlURL="wsdl/RealServer.wsdl"
xmlns:s="http://server.example.com/" />
<route id="chd-webservice">
<from uri="cxf:bean:chdEndpoint?dataFormat=MESSAGE" />
<log message="get client call webservice!" />
<to ref="callChdRealWebService" />
<log message="get real webservice back" />
</route>
我在卡拉夫部署我的骆驼路由器。
我想知道客户端是否调用了webservice,http请求首先到达了码头,而码头请求又转到了骆驼,然后骆驼使用cxf调用了真正的webservice
最佳答案
您使用Apache CXF(例如cxfEndpoint)在Karaf服务器上发布Web服务。并且当您执行该操作时,Apache CXF使用基于Jetty的Apache Karaf的HTTP服务。因此,最重要的是,使用了其码头。
Apache Karaf有一个etc / jetty.xml配置文件,在其中配置了Jetty。
您可以在Karaf网站上找到有关OSGi HTTP服务和Jetty的一些详细信息,例如:http://karaf.apache.org/manual/latest-2.3.x/users-guide/http.html
关于java - IS Camel 从 jetty 获得http请求,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18606783/