MuleESB flow, why do I get two files outputted?

2019-08-14 20:17发布

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条回答
Root(大扎)
2楼-- · 2019-08-14 20:44

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.

查看更多
登录 后发表回答