Hi Fred,
Thanks so much for answering questions here.
And please follow the rule that all messages in this thread should be
in English, so that more guys can understand and can participate the
discussion, it's more useful for later track.
Freeman
On 2010-10-18, at 下午4:15, Fred wrote:
cn应该是中国把~
最简单的方法,你可以用servicemix的EIP组件,虽然他不是
很推荐,smx推荐camel
for example (using content route):
<cxfbc:producer wsdl="mycalculate.wsdl"
service="calculate:CalculateService"
endpoint="calculate:eip"
locationURI="http://myserver:8080/services/Calculate"/>
<eip:content-based-router service="calculate:eip" endpoint="endpoint">
<eip:rules>
<eip:routing-rule>
<eip:predicate>
<!-- 这里写条件-->
<eip:xpath-predicate xpath="count(/test:echo) = 1"
namespaceContext="#nsContext" />
</eip:predicate>
<eip:target>
<!-- 条件成立则到这里-->
<eip:exchange-target service="mycalculate.wsdl"
endpoint="endpoint" />
</eip:target>
</eip:routing-rule>
<eip:routing-rule>
<!-- 条件不符合就到这里-->
<eip:target>
<eip:exchange-target service="test:recipients" />
</eip:target>
</eip:routing-rule>
</eip:rules>
</eip:content-based-router>
<cxfbc:producer wsdl="mycalculate.wsdl"
service="calculate:CalculateService"
endpoint="calculate:Calculate"
locationURI="http://myserver:8080/services/Calculate"/>
Thanks and regards
Fred
From: fat_belly
Date: 2010-10-18 15:57:09
To: users
Cc:
Subject: cxfbc:consumer and camel routes
I have the following cxfbc consumer and cxfbc producer:
<cxfbc:consumer wsdl="mycalculate.wsdl"
service="calculate:CalculateService"
endpoint="soap"
targetService="calculate:CalculateService"
targetEndpoint="calculate:Calculate"
locationURI="http://myserver:8000/Calculate"/>
<cxfbc:producer wsdl="mycalculate.wsdl"
service="calculate:CalculateService"
endpoint="calculate:Calculate"
locationURI="http://myserver:8080/services/Calculate"/>
Currently, I have the following flow:
external client --> cxf consumer --> cxf producer --> external service
How would I introduce routing btwn the consumer and producer that
would
result in the following flow:
external client --> cxf consumer --> routing --> cxf producer -->
external
client
Can you give me an example, thank you?
--
View this message in context:
http://servicemix.396122.n5.nabble.com/cxfbc-consumer-and-camel-routes-tp3217057p3217057.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Open Source SOA: http://fusesource.com
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org