Java 是否从jetty获取http请求
我的骆驼路由器:Java 是否从jetty获取http请求,java,web-services,jetty,apache-camel,apache-karaf,Java,Web Services,Jetty,Apache Camel,Apache Karaf,我的骆驼路由器: <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.c
<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请求首先调用jetty,jetty将请求放到camel,然后camel使用cxf调用real webservice您使用Apache cxf,例如cxfEndpoint在Karaf服务器上发布web服务。当您这样做时,ApacheCXF使用ApacheKaraf的HTTP服务,它是基于Jetty的。因此,归根结底,它使用的是码头 ApacheKaraf有一个etc/jetty.xml配置文件,其中配置了jetty 您可以在Karaf网站上找到有关OSGi HTTP服务和Jetty的一些详细信息,例如: