mule-component

How to use Mule Expression in JMS:selector

依然范特西╮ 提交于 2019-12-11 12:23:49
问题 I checked several previous discussions but couldnt find the answer. I am trying to achieve synchronous communicaiton using JMS back-channel (http://www.whishworks.com/blog/synchronous-communication-using-jms-back-channel). Apart from the things mentioned in that site, I need to filter out the message from the inbound queue based on a dynamic Id. Following are my mule flows: <flow name="serverFlow" > <jms:inbound-endpoint doc:name="REQUEST" queue="REQUEST.QUEUE" connector-ref="jmsConnector">

Limiting HTTP Listener Active Threads to control number of concurrent mule flow instaces

别说谁变了你拦得住时间么 提交于 2019-12-10 11:57:08
问题 I am trying to do a test on how to limit the number of concurrent incoming HTTP requests. So I tried to simulate the following scenario. I have created a simple flow with 1. Http Listener as Msg source 2. Using Groovy Script, Sleeping for 15 seconds to introduce delay 3. Set the Payload with Hello world. So any single request will have Min 15 sec of response time. Then in order to limit number of active threads (i.e assuming to control concurrent requests / processing threads) , I have set

How to set sleep into the flow in Mulesoft without losing the message payload

主宰稳场 提交于 2019-12-07 03:06:17
问题 I'd like insert script to delay processing flow in Mulesoft. I have tried to insert script in groovy but I lost the messagge payload, so when I have to get message payload recived null pointer. How can I to do not lose the message payload? Thanks 回答1: If you are using Groovy component in you flow,then you can define sleep() as follow :- <scripting:component doc:name="Groovy"> <scripting:script engine="Groovy"><![CDATA[ sleep(10000); return message.payload;]]> </scripting:script> </scripting

Why Batch scope behave strange when trying to load a Huge Records- Mule ESB

久未见 提交于 2019-12-06 15:17:56
问题 I'm facing issues in Process Record Phase of Batch, Kindly suggest- I'm trying to load the some KB file ( which has about 5000 record). For the success scenario it works. If suppose error happened in input phase for the first hit and the flows stops, when the second time when it try to hit the same record. Mule stops executing in Process Record step .It is not running After loading Phase . Please find the run time logs below 11:55:33 INFO info.org.mule.module.logging.DispatchingLogger -

How to set sleep into the flow in Mulesoft without losing the message payload

寵の児 提交于 2019-12-05 05:55:39
I'd like insert script to delay processing flow in Mulesoft. I have tried to insert script in groovy but I lost the messagge payload, so when I have to get message payload recived null pointer. How can I to do not lose the message payload? Thanks If you are using Groovy component in you flow,then you can define sleep() as follow :- <scripting:component doc:name="Groovy"> <scripting:script engine="Groovy"><![CDATA[ sleep(10000); return message.payload;]]> </scripting:script> </scripting:component> And remember to return message.payload in Groovy so that you can get the payload at the end or

Mule won't allow POLL message processor to read file using file Inbound?

核能气质少年 提交于 2019-12-02 10:12:55
I have a small query, POLL message processor not allowing to read Files from 'File Inbound' message processor? I need to read the file for every 5 minutes (Schedule automatically) to proceed with further requirements. Is it possible using POLL? How can be file inbound used in POLL. Any suggestions will be helpful. I recommend you execute this operation using the quartz connector. Here's an example: <flow name="repeatIntervalFileFlow" doc:name="repeatIntervalFileFlow"> <quartz:inbound-endpoint responseTimeout="10000" doc:name="Quartz" jobName="test" repeatInterval="300000"> <quartz:event

Mule Zip File and send zipped file towards FTP server

六眼飞鱼酱① 提交于 2019-12-02 04:53:48
问题 I know Mule has great support for gzip compression of data using the element. However the client now wants zip compression since the file has to be placed on an FTP as a zip compressed file :( I encounter difficulties in mule with following scenario: I created a Spring bean where a file comes in. I want to compress this file using the ZipOutputStream class and pass it towards our ftp. This is my flow configuration: <flow name="testFlow" initialState="stopped"> <file:inbound-endpoint path="$

How to ignore empty objects in DataWeave Mule esb

て烟熏妆下的殇ゞ 提交于 2019-11-30 14:09:44
问题 I am working on transforming my payload. I have got the situation here. Input payload looks like this below one:- { "address": { "city": "bab", "company_name": "asdast", "country_code": "sam", "location": { "city": null, "state": null } }} I used %output application/json skipNullOn = "everywhere" it returns me JSON like below { "address": { "city": "bab", "company_name": "asdast", "country_code": "sam", "location": { } }} But I don't want to have empty location object if all fields in

How to ignore empty objects in DataWeave Mule esb

守給你的承諾、 提交于 2019-11-30 09:29:49
I am working on transforming my payload. I have got the situation here. Input payload looks like this below one:- { "address": { "city": "bab", "company_name": "asdast", "country_code": "sam", "location": { "city": null, "state": null } }} I used %output application/json skipNullOn = "everywhere" it returns me JSON like below { "address": { "city": "bab", "company_name": "asdast", "country_code": "sam", "location": { } }} But I don't want to have empty location object if all fields in location objects are empty.I am expecting something like this { "address": { "city": "bab", "company_name":

UntilSuccessful component to poll http endpoint till condition is met

随声附和 提交于 2019-11-28 09:41:56
问题 Polling http endpoint, receiving JSON response, I wish to keep polling till a condition is met. I have tried <until-successful failureExpression="#[json:status != 'COMPLETED']" maxRetries="5" secondsBetweenRetries="10" synchronous="true"> but this is giving exception. Please also let me know if there is another method for my scenario 回答1: assign the compute value to flow variable and provide condition evaluting the corresponding flow variable. <until-successful failureExpression="#[flowVars[