MuleESB流程,为什么我要输出两个文件? [英] MuleESB flow, why do I get two files outputted?

查看:61
本文介绍了MuleESB流程,为什么我要输出两个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从MongoDB中获取一条记录并将其放入文件中,但是却得到了两个文件,那是为什么呢?我认为这些操作将按顺序执行,并且流程中的每个步骤都将从上一步骤中获取数据,对吗?

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>

我转到此URL触发其执行.

I go to this URL to trigger its execution.

http://localhost:8081/

谢谢菲利普

推荐答案

尝试为http入站端点设置路径属性,您很可能会遇到浏览器发送的favicon.ico请求以及您实际想要的http请求要做.

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.

这篇关于MuleESB流程,为什么我要输出两个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆