This content has been marked as final.
Show 3 replies
-
1. Re: IllegalArgumentException in camel route
njiang Mar 7, 2011 6:45 PM (in response to dhoyt)Hi
When you try to use Jetty and Http component to build a proxy, you need to enable the bridgeEndpoint option like this.
<camelContext id="myTest" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="jetty:http://localhost:8080/LoggedMemberService?bridgeEndpoint=true"></from> <to uri="log:com.test"></to> <to uri="http://otherServer:8080/MemberService?bridgeEndpoint=true"></to> <to uri="log:com.test"></to> </route> </camelContext>
Willem
-
2. Re: IllegalArgumentException in camel route
dhoyt Mar 8, 2011 10:05 AM (in response to njiang)That solved it! Thanks!
-
3. Re: IllegalArgumentException in camel route
mlabrot Mar 9, 2011 4:58 PM (in response to dhoyt)The null host appears to be because no host is specified in the HTTP_URI header (actual value is just "/LoggedMemberService"). To use the URL specified in the endpoint verbatim, try the following:
from("jetty:http://localhost:8192/LoggedMemberService")
.removeHeader(Exchange.HTTP_URI)
.removeHeader(Exchange.HTTP_PATH)