Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 是否从jetty获取http请求_Java_Web Services_Jetty_Apache Camel_Apache Karaf - Fatal编程技术网

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的一些详细信息,例如: