标签: mule-studio

如何使用Mule ESB,Mule Studio读取CSV文件并将数据插入PostgreSQL

我是Mule Studio的新手.

我正面临一个问题.我有一个要求,我需要使用Mule Studio将数据从CSV文件插入PostgreSQL数据库.

我使用的是Mule Studio CE(版本:1.3.1).我查看了谷歌,发现我们可以使用Data-mapper这样做.但它只适用于EE.所以我不能使用它.

此外,我正在检查网络并找到一篇文章使用Mule Studio从PostgreSQL(入站)读取数据并将其写入文件(出站) - 逐步方法.

这似乎是可行的,但我的要求恰好与给出的文章相反.我需要File作为入站数据,而Databse作为Outbound组件.

这样做的方法是什么?

任何一步一步的帮助(如使用的组件)和指导将非常感激.

mule mule-studio

12
推荐指数
1
解决办法
9980
查看次数

如何在mule logger组件的消息体中插入换行符

谁能告诉我如何在骡子记录器组件的消息中插入新行?

例如,我在记录器的消息中有以下内容:

Payload is: #[payload] 
Inbound Headers:  #[headers:INBOUND:*] 
Outbound Headers:  #[headers:OUTBOUND:*]  
Exceptions:  #[exception]
Run Code Online (Sandbox Code Playgroud)

我想在上面的每一个之后插入一个新行.我试过在每行的末尾添加\n,但这不起作用.

logging mule mule-studio

9
推荐指数
2
解决办法
1万
查看次数

什么是骡子的入站终点和出站终点?

我一直试图弄清楚究竟什么是入站终点和出站终点.对我而言,理解是有点躲避.

什么是mule流中/ do的入站和出站端点?如果流程想要发送消息,则应在接收时使用哪个端点.或者当一个应用程序想要调用一个它应该与之通信的端点的流?

esb mule mule-studio

8
推荐指数
2
解决办法
5020
查看次数

如何在DataWeave Mule esb中忽略空对象

我正在努力改造我的有效载荷.我有这种情况.

输入有效负载如下所示: -

{
 "address": {
    "city": "bab",
    "company_name": "asdast",
    "country_code": "sam",
    "location": {
    "city": null,
    "state": null
  }
}}
Run Code Online (Sandbox Code Playgroud)

我使用%output application/json skipNullOn = "everywhere"它返回我下面的JSON

{
 "address": {
"city": "bab",
"company_name": "asdast",
"country_code": "sam",
"location": { }
}}
Run Code Online (Sandbox Code Playgroud)

但是如果位置对象中的所有字段都是空的,我不希望有空的位置对象.我期待这样的事情

{   
"address": {
"city": "bab",
"company_name": "asdast",
"country_code": "sam"
}}
Run Code Online (Sandbox Code Playgroud)

mule mule-studio mule-el mule-component dataweave

7
推荐指数
1
解决办法
1万
查看次数

Mule ESB - 两个文件作为输入(等待两者)

我想做一个流程:

  1. 等待两个文件:file_name.xdf和file_name.dff:如果两个文件(我想同时处理两个文件(等待两个文件),那些文件的文件名应该相同)
  2. 处理那些文件转换为字节数组
  3. 运行groovy脚本

我怎样才能提出第一点?

esb mule mule-studio

6
推荐指数
1
解决办法
1465
查看次数

直到成功的超时错误

我们有一个流程,我们已经实现了一个soap客户端来向服务提供商发送soap消息.

如果失败,我们需要重试服务调用3次.所以我们在内部使用HTTP Outbound Endpoint直到成功范围.

它按预期进行重试,但是在成功情况下,即使我们从服务获得响应,我们也会观察到超时错误,如下所示.

[DispatchThread:1] org.apache.cxf.endpoint.ClientImpl:等待响应操作{ http://support.cxf.module.mule.org/ }的超时调用.

观察:

我已经删除了直到成功并直接拥有HTTP Outbound端点,在这种情况下没有超时错误.

我后来尝试过,直到成功并有一个承认表达式接受响应,仍然同时响应.

failureExpression ="#[message.inboundProperties ['http.status']!= 200]"ackExpression ="#[message.correlationId]"

任何人都可以建议,如何配置直到成功接受响应,而不是浪费时间错误.

timeoutexception mule mule-studio

6
推荐指数
1
解决办法
1374
查看次数

骡子:抓住异常消息

我在Mule中有一个默认的catch异常,我正在尝试使用Mule表达式访问异常消息:#[exception]

这似乎不起作用,我猜我正在尝试访问错误的变量?我正在尝试使用logger记录它,并运行一个接收异常消息的自定义组件(作为字符串.)

谢谢,

java mule mule-studio mule-el

6
推荐指数
3
解决办法
2万
查看次数

使WebMQ同步

我正在尝试使WebMQ在MULE中同步操作,以便将消息队列转换为内部项目的REST API.不幸的是,我对MULE知之甚少.

经过一番工作后,我开始理解Request-Reply范围,并尝试使用WMQ Connector,只是发现WMQ只在流程结束后发送.

我已尝试使用VM将请求放入不同的流程中以触发它

但到目前为止,只是导致它永远等待WMQ永远不会发生.

我也尝试过来回使用虚拟机:

但它似乎做了与没有相同的事情,它只是忽略了输入.

现在我知道WMQ的输入和输出正在工作,因为我之前设置了一个使用http与自身通信的流程,并让它知道消息何时通过.

我本质上想要的是这个,但使用HTTP而不是AJAX

我最近的,也许最接近的尝试看起来像这样:

XML是:

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:http="http://www.mulesoft.org/schema/mule/http" version="EE-3.6.0" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:ajax="http://www.mulesoft.org/schema/mule/ajax" xmlns:core="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core" xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:stdio="http://www.mulesoft.org/schema/mule/stdio" xmlns:test="http://www.mulesoft.org/schema/mule/test" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:wmq="http://www.mulesoft.org/schema/mule/ee/wmq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/ajax http://www.mulesoft.org/schema/mule/ajax/current/mule-ajax.xsd
http://www.mulesoft.org/schema/mule/ee/wmq http://www.mulesoft.org/schema/mule/ee/wmq/current/mule-wmq-ee.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd
http://www.mulesoft.org/schema/mule/stdio http://www.mulesoft.org/schema/mule/stdio/current/mule-stdio.xsd
http://www.mulesoft.org/schema/mule/test http://www.mulesoft.org/schema/mule/test/current/mule-test.xsd
http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd
http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd">

    <wmq:connector channel="MAGENTO.SVRCONN" doc:name="WMQ Connector" hostName="[ip]" name="wmqConnector" port="1414" queueManager="MAGENTO" transportType="CLIENT_MQ_TCPIP" validateConnections="true" />
    <vm:connector name="VM" validateConnections="true" doc:name="VM">
        <vm:queue-profile maxOutstandingMessages="500">
            <default-persistent-queue-store/>
        </vm:queue-profile>
    </vm:connector>
    <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/> …
Run Code Online (Sandbox Code Playgroud)

mule mule-studio

6
推荐指数
1
解决办法
543
查看次数

Anyule Studio for Mule是Community Edition吗?

我相信Mule Studio成为了Anypoint Studio.是否有开源的Anypoint Studio版本(免费)?具体来说,我指的是GUI工作流设计器工具.

mule mule-studio anypoint-studio

6
推荐指数
2
解决办法
1万
查看次数

如何为Anypoint Studio 3.5.1安装EGit

我安装了Anypoint Studio 3.5.1版(用于Mule ESB开发).此版本的Anypoint Studio似乎基于Eclipse 3.8(可能是3.8.2)

我想安装EGit,但遇到了一些问题.

在"安装新软件"窗口中使用以下下载站点:

http://download.eclipse.org/egit/updates

我选择了Eclipse Git Team Provider(包括所有子模块)进行安装,然后单击"下一步"按钮.

然后我得到这个错误:

    Cannot complete the install because one or more required items could not be found.
  Software being installed: Task focused interface for Eclipse Git Team Provider 3.4.1.201406201815-r (org.eclipse.egit.mylyn.feature.group 3.4.1.201406201815-r)
  Missing requirement: Git Team Provider UI 3.4.1.201406201815-r (org.eclipse.egit.ui 3.4.1.201406201815-r) requires 'bundle org.eclipse.e4.ui.css.swt.theme 0.0.0' but it could not be found
  Cannot satisfy dependency:
    From: Task focused interface for Eclipse Git Team Provider 3.4.1.201406201815-r (org.eclipse.egit.mylyn.feature.group 3.4.1.201406201815-r)
    To: org.eclipse.egit.mylyn.ui [3.4.1.201406201815-r]
  Cannot …
Run Code Online (Sandbox Code Playgroud)

eclipse mule egit mule-studio

5
推荐指数
1
解决办法
3317
查看次数