首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >这两个Mule流之间有什么区别

这两个Mule流之间有什么区别
EN

Stack Overflow用户
提问于 2013-03-12 19:04:21
回答 1查看 325关注 0票数 0
代码语言:javascript
复制
<flow name="webserviceFlow1">
    <http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:7079/service">
    <cxf:jaxws-service doc:name="SOAP" enableMuleSoapHeaders="false" serviceClass="MyService"/>
    </http:inbound-endpoint>
    <component class="MyServiceImpl" />        
</flow>

代码语言:javascript
复制
<flow name="webserviceFlow1">
    <http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:7079/service"/>
    <cxf:jaxws-service doc:name="SOAP" enableMuleSoapHeaders="false" serviceClass="MyService"/>
    <component class="MyServiceImpl" />        
</flow>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-03-13 15:50:37

如果流保持在您的问题中,它们在功能上是等价的。

如果您希望使这个流也可用于直接请求(例如通过VM传输,通过使用<composite-source> ),那么您将希望将cxf:jaxws-service限制为http:inbound-endpoint,这样CXF逻辑就不会启动,如下所示:

代码语言:javascript
复制
<flow name="webserviceFlow1">
    <composite-source>
        <vm:inbound-endpoint path="directAccess" />
        <http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:7079/service">
            <cxf:jaxws-service doc:name="SOAP" enableMuleSoapHeaders="false" serviceClass="MyService"/>
        </http:inbound-endpoint>
    </composite-source>
    <component class="MyServiceImpl" />        
</flow>
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15369930

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档