MuleESB flow, why do I get two files outputted?

不打扰是莪最后的温柔 提交于 2019-12-11 08:23:37

问题


I'm trying to get one record from MongoDB and put it into a file, but I get two files, why is that? I thought that these would execute in a sequence and each step in the flow would take the data from the previous step, am I wrong?

<flow name="test1Flow2" doc:name="test1Flow2">
    <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/>
<mongo:find-one-object
    config-ref="Mongo_DB" collection="my_collection" doc:name="Mongo DB"
    query-ref="#[string:{ }]" >
</mongo:find-one-object>
  <mongo:dbobject-to-json doc:name="Mongo DB"/>
 <file:outbound-endpoint path="/somewhere" responseTimeout="10000" doc:name="Mongo DB"/>
</flow>

I go to this URL to trigger its execution.

http://localhost:8081/

Thanks, Philip


回答1:


Try setting a path attribute for the http inbound endpoint, you are quite likely experiencing a favicon.ico request sent by your browser along with the http request you actually want to do.



来源:https://stackoverflow.com/questions/22072121/muleesb-flow-why-do-i-get-two-files-outputted

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!