标签: mule-studio

Spring3依赖注入不适用于mule

我无法在CustomerServiceImpl服务类中的引用变量中注入customerDao对象.

这是我的mule_flow.mflow文件

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:http="http://www.mulesoft.org/schema/mule/http"
    xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf"
    xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="CE-3.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd 
http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/current/mule-cxf.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 ">


<flow name="helloService" doc:name="helloService">
<http:inbound-endpoint exchange-pattern="request-response"
address="http://localhost:8081/hello" doc:name="HTTP" />
<cxf:simple-service serviceClass="com.proj.pos.demo.HelloWorld"
doc:name="SOAP" />
<component class="com.proj.pos.demo.ServiceAImplService"
doc:name="Java" />
</flow>

<flow name="addCustomer" doc:name="addCustomer">
<http:inbound-endpoint exchange-pattern="request-response"
address="http://localhost:8081/pos/addCustomer" doc:name="HTTP" />
<cxf:simple-service serviceClass="com.proj.pos.webservice.interfac.CustomerService"
doc:name="SOAP" />
<component class="com.proj.pos.webservice.implementation.CustomerServiceImpl"
doc:name="Java" />
</flow>

<spring:beans>
 <spring:import resource="classpath:spring-mule.xml"/>
</spring:beans>
</mule>
Run Code Online (Sandbox Code Playgroud)

这是我的Spring-mule.xml文件

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:lang="http://www.springframework.org/schema/lang"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/aop …
Run Code Online (Sandbox Code Playgroud)

java spring hibernate mule mule-studio

3
推荐指数
1
解决办法
3356
查看次数

为什么Mule Studio 3.4使用Maven构建失败或无限期挂起

我正在尝试使用Maven(使用Mule 3.4)构建或使用Mule应用程序时遇到以下问题.类似地,当我更新依赖项时,Eclipse将在尝试下载com.mulesoft.licm时无限期挂起:licm:jar:1.1.3

Failed to read artifact descriptor for com.mulesoft.licm:licm:jar:1.1.3: 
Could not transfer artifact com.mulesoft.licm:licm:pom:1.1.3 from/to libs-releases
(http://dev.ee.mulesource.com/repository/content/repositories/libs-releases/): 
Connection to http://dev.ee.mulesource.com refused: Connection timed out: connect 
-> [Help 1] [ERROR] 
Run Code Online (Sandbox Code Playgroud)

这是我的pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <groupId>edu.ucdavis.edus-pub-service</groupId>
    <artifactId>edus-pub-service</artifactId>
    <packaging>mule</packaging>
    <version>1.0.0-SNAPSHOT</version>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

        <mule.version>3.4.0</mule.version>
        <eclipsePluginVersion>2.8</eclipsePluginVersion>
        <jdkName>JavaSE-1.6</jdkName>
        <jdk.version>1.6</jdk.version>
        <junit.version>4.9</junit.version>
    </properties>

    <build>
        <!-- Use a newer version of the install plugin than what your Maven uses 
            by default. The older version failed to install the project if there was …
Run Code Online (Sandbox Code Playgroud)

mule mule-studio

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

如何使用Mule Studio数据映射器生成从复杂XSD架构生成的输出?

我想使用MULE企业版向SOAP Web服务发布消息.为了创建Request对象,我使用数据映射器,输入为POJO,输出为选择的XML,从示例XML模式,我添加了自己的XSD.因为xsd中有很多元素,所以我从提供的列表中选择了根元素.

然后我将输入中的字段拖动到输出中我想要的相应值.(我也试图只映射一个字段,以确保我保持最小的错误概率).

现在问题是:当访问流时,会显示以下WARN并且数据映射器失败

*[XML WRITER:EXT_XML_WRITER0] - 无效映射(将端口绑定到根元素,结果可能包含多个根元素.这样的XML格式不正确.为避免这种情况,请设置'每个文件的记录数'或'最大记录数'组件属性为'1'.)*

我在哪里可以在数据映射器中设置这种选项?

而且我还希望根元素只有一个,我不需要foreach for root元素,我只需要填充它的内容.我可以在数据映射器中的任何位置指定它吗?

谢谢.

mule mule-studio

3
推荐指数
1
解决办法
3157
查看次数

如何使用Groovy在Mule中设置消息属性?

如何使用Groovy在Mule中设置消息属性?

我需要在Groovy脚本组件中设置一个消息属性.关于该主题的文档似乎不容易找到.

mule mule-studio

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

MuleStudio工作室:工作室目标未能执行

我在Mule Studio工作区(从Mule Studio中)复制/粘贴了一个工作项目来创建一个新项目.在那之后,我可以在新项目上进行mvn clean安装,一切正常.

然后,在对pom进行任何修改(即添加一个空行)后,我收到以下错误(在项目名称上的感叹号上).我仍然可以毫无错误地执行mvn clean install并获得我可以部署的jar.但是,我想消除错误.

在项目ProjectName,studio:studio目标无法执行时构建问题,检查Maven Output控制台是否有日志

编辑

这是我在控制台中可以阅读的内容

[ERROR] No plugin found for prefix 'studio' in the current project and in the plugin groups [org.apache.maven.plugins, mojo.codehaus.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\_jde\maven\repo), nexus (http://nexusserver00:8080/nexus/content/groups/public)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'studio' in the current project and in the plugin groups [org.apache.maven.plugins, mojo.codehaus.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\_jde\maven\repo), nexus (http://nexusserver00:8080/nexus/content/groups/public)]
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:94)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:262)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:222)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:106)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:86)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:98) …
Run Code Online (Sandbox Code Playgroud)

java mule maven mule-studio

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

从mule esb中的JSON中提取所有特定字段

我有这个json有效载荷,我想一次性收集所有externalListingId -

{
"listings": {
    "numFound": 3,
    "listing": [
        {
            "status": "INACTIVE",
            "pricePerTicket": {
                "amount": 100,
                "currency": "USD",
            },
            "paymentType": "1",
            "externalListingId": "12208278",
            "city": "New York"
        },
        {   "status": "ACTIVE",
            "pricePerTicket": {
                "amount": 4444,
                "currency": "USD"
            },
            "paymentType": "1",
            "externalListingId": "CID1421798897102:151681733",
            "city": "Seattle"
        }
      ]
   }
}
Run Code Online (Sandbox Code Playgroud)

我正在使用MVEL表达式 -

<enricher target="#[flowVars['sData']]" source="#[(externalListingId in payload.listing)]" doc:name="Message Enricher">
    <json:json-to-object-transformer returnClass="java.util.HashMap" doc:name="JSON to Object"/>
    </enricher>
Run Code Online (Sandbox Code Playgroud)

但这是错误的! - 消息有效内容的类型为:ReleasingInputStream.

场景 - 我想将所有externalListingId收集到flowVariable中,转换为hashmap.我有另一个CSV文件作为输入,想循环通过该有效负载,并检查此映射是否包含id !!

我正在关注这篇早期文章 - 在mule esb中从JSON中提取数组

groovy json mvel mule mule-studio

3
推荐指数
1
解决办法
1416
查看次数

我在哪里可以下载MuleSoft社区版?

他们摆脱了社区版吗?我无法在其网站上的任何位置找到下载链接.还有其他链接我可以从某个地方下载吗?

谢谢

esb mule mule-studio

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

正在寻找Mule Studio的先前版本(v1.3.1)的下载

我最近加入了一个使用以下版本的Mule Studio的项目团队:

版本1.3.1 Build 201209041237

我想在我的Mac上下载并安装此版本,但我无法在任何地方找到下载位置.谁能告诉我在哪里可以找到它?我当然可以下载3.4,但这只适用于Mule ESB 3.4,我们无法升级所有的Mule实例只是因为新的开发人员被添加到团队中.

mule mule-studio

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

如何使用mule请求者进行SFTP - 动态文件名和路径

我正在尝试使用mule请求程序组件进行SFTP.如何将文件名作为请求参数的一部分?这是我的流程:

<flow name="Move_Doc_To_Temp_Location" doc:name="Move_Doc_To_Temp_Location">
    <jdbc-ee:inbound-endpoint queryKey="Select_Document" queryTimeout="-1" pollingFrequency="30000" connector-ref="LoanApp_Database" doc:name="Select_Doc_To_be_moved"/>
    <set-variable variableName="OriginalPayload" value="#[payload]" doc:name="OriginalPayload"/>
    <logger message="#[payload['DocID']] - #[payload['Location']]" level="INFO" category="Document to be moved" doc:name="Logger"/>
           <!--  <mulerequester:request config-ref="Mule_Requester" resource="file:///#[payload['Location']]" doc:name="Mule Requester"/> -->
    <mulerequester:request config-ref="Mule_Requester" resource="sftp://user:Pwd@Hostname#[payload['Location']]" doc:name="Mule Requester"/>  
    <file:outbound-endpoint path="C:\Users\jvas\Desktop\testfiles" outputPattern="#[header:originalFilename]" responseTimeout="10000" doc:name="File"/>        
</flow>
Run Code Online (Sandbox Code Playgroud)

位置值解析为/opt/Documents/test.txt.当我像这样指定文件名时,它会抛出一个错误:

ERROR 2014-07-24 05:51:12,358 [[loanapp_document_flow] .Move_Doc_To_Temp_Location.stage1.02] org.mule.exception.DefaultMessagingExceptionStrategy: ****************************************************************************消息:无法在接收事件:DefaultInboundEndpoint {endpointUri = SFTP:// muledev:@ nylicvmmuledev /选择/文档/ test.txt的,连接器= SftpConnector {名称= SFTP1生命周期=启动此= aa033b numberOfConcurrentTransactedReceivers = 4个
createMultipleTransactedReceivers =真连接=真
支持协议= [SFTP] serviceOverrides =},名称= 'endpoint.sftp.nylicvmmuledev.opt.Documents.test.txt',MEP = ONE_WAY,属性= {},transactionConfig =事务{工厂=空,动作=淡漠,超时= 0},deleteUnacceptedMessages =假,初始化状态开始=,responseTimeout = 10000,endpointEncoding …

mule mule-studio

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

在Mule应用程序中实现条件循环

我是骡子软件的新手.我正在一个应用程序中工作,我需要在特定条件下循环流程.如何在mule应用程序流中实现while循环.

提前致谢.

mule mule-studio mule-component

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

标签 统计

mule ×10

mule-studio ×10

java ×2

esb ×1

groovy ×1

hibernate ×1

json ×1

maven ×1

mule-component ×1

mvel ×1

spring ×1