Proxy JBoss Fuse 6.3-骆驼码头代理更改url
我对骆驼码头有意见。我在新的JBoss Fuse 6.3中使用了JBoss Fuse 6.2.1中的原始上下文。集成项目 从url(例如esb.mydomain.com/test)请求的url被重定向到目标url(例如localhost:8080/myservice),web浏览器中的url(esb.mydomain.com/test)保留在6.2.1版本中 但是当我在JBoss Fuse 6.3中尝试同样的方法时。重定向已完成,但url已更改(localhost:8080/myservice) 有以下背景:Proxy JBoss Fuse 6.3-骆驼码头代理更改url,proxy,jboss,apache-camel,jetty,Proxy,Jboss,Apache Camel,Jetty,我对骆驼码头有意见。我在新的JBoss Fuse 6.3中使用了JBoss Fuse 6.2.1中的原始上下文。集成项目 从url(例如esb.mydomain.com/test)请求的url被重定向到目标url(例如localhost:8080/myservice),web浏览器中的url(esb.mydomain.com/test)保留在6.2.1版本中 但是当我在JBoss Fuse 6.3中尝试同样的方法时。重定向已完成,但url已更改(localhost:8080/myservice)
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<camelContext id="_context1" xmlns="http://camel.apache.org/schema/blueprint">
<route id="TestRoute">
<from id="_from1" uri="jetty:http://0.0.0.0/test?matchOnUriPrefix=true"/>
<to id="_to1" uri="jetty:http://localhost:8080/myservice?bridgeEndpoint=true&throwExceptionOnFailure=false"/>
</route>
</camelContext>
你知道哪里会出问题吗
已更新
我试着一次又一次地改变路线:)我发现了以下奇怪的行为
此路由重定向到google并从路由添加url参数:
google.com?bridgeEndpoint=true&ThroweExceptionOnFailure=false
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<routes xmlns="http://camel.apache.org/schema/spring">
<route customId="true" id="httpBridge">
<from uri="jetty:http://0.0.0.0/test?matchOnUriPrefix=true"/>
<to uri="jetty:https://google.com?bridgeEndpoint=true&throwExceptionOnFailure=false" customId="true" id="to2"/>
</route>
</routes>
这是一个代理(桥接器)。没有重定向。谷歌显示404当然是因为它不存在。但浏览器中的url并没有改变(jboss-fuse-6308331.cloudapp.net/test)
唯一的区别是“to google”uri结尾的字母“x”。例如,字母“a”重定向到google,如前一个示例:(使用Red Hat客户门户获取JBoss FuseThank you的开发人员/生产支持/帮助。已经完成,但没有答案:(客户门户是为客户提供的,因此您可以使用它获得帮助。另一个是公共论坛,它不太快,无法帮助您使用Red Hat客户门户获得JBoss FuseThank you的开发人员/生产支持/帮助。已经完成,但没有回答:(客户门户是为客户提供的,因此您可以使用它获得帮助。另一个是公共论坛,它的帮助速度不是很快
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<routes xmlns="http://camel.apache.org/schema/spring">
<route customId="true" id="httpBridge">
<from uri="jetty:http://0.0.0.0/test?matchOnUriPrefix=true"/>
<to uri="jetty:https://google.com/x?bridgeEndpoint=true&throwExceptionOnFailure=false" customId="true" id="to2"/>
</route>
</routes>