mule

Is there a way to poll several addresses using Mule's HttpPollingConnector?

喜夏-厌秋 提交于 2019-12-24 01:19:05
问题 I am trying to poll several addresses (URL links) from a list that contains all these addresses using the http polling connector in Mule. Currently, I am only able to poll from one address but I would like to find a way to use this list to iterate the polling for each site. Is there anything built within Mule that provides such function? 回答1: Is composite source what you're looking for? It allows you to have more than one endpoint in the inbound. e.g. from http://www.mulesoft.org

Mule Dataweave format :number

我们两清 提交于 2019-12-24 00:58:53
问题 I'm having an issue trying to parse a string to double this would be a sample code, it's returning an integer instead of type :double any ideas? { "data": "22" as :number { format: "##.##" } } 回答1: This, and only this, works for me; %dw 1.0 %output application/json --- { data: "22" as :number as :string {format: ".00"} as :number } format only seems to add zeros when converting from a number to a string. If "22" would have already been a number you wouldn't need the first :number conversion;

Quartz job to read wildcard filename only picks up one file

孤街醉人 提交于 2019-12-24 00:44:27
问题 Using Mule 3.7. If I have 5 files in a directory with a .csv extension the below code only picks up one of the five files. If I remove the quartz trigger and make it a normal file:inbound-endpoint it picks up all five files. It seems so simple but does not work as intended. Thanks, -- Don <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting" xmlns:context="http://www.springframework

Reconnect using Mule 3.5 db connector

亡梦爱人 提交于 2019-12-24 00:37:45
问题 I'm in the process of upgrading my flows to Mule 3.5.1 (from 3.4.1). I am trying to replace the deprecated jdbc-ee:connector with the new db connector. For the database, we are using Microsoft sql server. There isn't a predefined configuration for MS SQL Server, so I'm using the db:generic-config configuration. Does anyone know how to configure reconnection strategies with the new DB config? I'm finding the documentation is very sparse. Using the old jdbc-ee:connector, you can simply specify

Can someone give me simple spring integration with mule?

家住魔仙堡 提交于 2019-12-23 22:21:03
问题 I am integrating a spring project with Mule and a, getting below error in startup. Is there any best reference I can use for spring mule integration with a full flow? Mule Flow configuration <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework

Checking an environment variable using the Maven AntRun plugin

若如初见. 提交于 2019-12-23 20:28:50
问题 I'm trying to check and see if the MULE_HOME environment variable is set within the maven-antrun-plugin without success. Here's what I have so far: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <id>mule-deploy</id> <phase>install</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="${settings.localRepository}

How to consume a SOAP web service in a Mule Flow?

女生的网名这么多〃 提交于 2019-12-23 19:34:04
问题 I am beginning with Mule flows and have seen the I have seen this page http://www.mulesoft.org/documentation/display/MULE3CONCEPTS/Using+Mule+with+Web+Services and http://www.mulesoft.org/documentation/display/MULEWS/Consuming+SOAP+Web+Services+in+Mule this oe too. They were not of much help. Currently, I have a simple mule flow as shown below. Flow definition <?xml version="1.0" encoding="UTF-8"?> <mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:http="http://www.mulesoft.org

Mule processing strategies - call async private flow from synchronous flow

a 夏天 提交于 2019-12-23 12:27:33
问题 I am trying to call an async private flow from a main synchronous flow like so: <flow name="main" doc:name="main" processingStrategy="synchronous"> <poll frequency="10000"> <set-payload value="main"></set-payload> </poll> <flow-ref name="async-private" /> <flow-ref name="private" /> </flow> <flow name="private" processingStrategy="synchronous"> <logger level="ERROR" message="sync" /> </flow> <flow name="async-private" processingStrategy="asynchronous"> <logger level="ERROR" message="async" />

Dynamic Key Value Pair in DataWeave

回眸只為那壹抹淺笑 提交于 2019-12-23 10:54:43
问题 DataWeave doesn't like what I'm trying to do with it, and I'm not sure if I'm doing something wrong, or if it is a limitation of DataWeave that isn't possible. Here's the scenario: I'm querying Salesforce and getting two values back: lets call them X and Y. Here's the return I want [{X:Y}, {X2:Y2}, {X3:Y3}, ...] however, using DataWeave it doesnt seem possible to get a key value pair like that, instead, it only seems possible to specifically set the Key for each value in the script like so: [

How to build a simple web proxy in Mule 3?

╄→гoц情女王★ 提交于 2019-12-23 10:01:25
问题 I ran this Mule 3 file expecting that when I browse to http://localhost:9000 , I would be redirected to http://localhost/path (source - behind a login prompt): <?xml version="1.0" encoding="UTF-8"?> <mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pattern="http://www.mulesoft.org/schema/mule/pattern" xsi:schemaLocation=" http://www.mulesoft.org/schema/mule/pattern http://www.mulesoft.org/schema/mule/pattern/3.1/mule-pattern.xsd