mule-el

Need clarification on “Transport Barrier” in understanding properties

房东的猫 提交于 2021-02-08 06:56:21
问题 i have read all "OUTBOUND" properties in Mule floe will be converted to "INBOUND" properties on crossing the "Transport barrier". i could not understand what is this "Transport barrier mean" . Is it calling an external world from an Mule outbound connector ? or calling an flow within the mule project itself ? 回答1: A "transport barrier" is when your Mule message goes through an endpoint that makes use of a transport (say for example, HTTP endpoints, JMS, TCP, VM, etc). There are two ways of

Setting Map as payload in Mule Flow using MEL

别等时光非礼了梦想. 提交于 2021-01-27 12:56:57
问题 I am trying to generate and set a map (with 2 key value pairs) on the fly as the payload for the following HTTP call. However, the MEL expression for creating the Map is not working. <sub-flow name="call-myservice" doc:name="call-myservice"> <set-payload value="#[username :${my.username}, password : ${my.password}]" doc:name="Set Payload"/> <https:outbound-endpoint exchange-pattern="request-response" host="${myservice.Host}" method="POST" mimeType="application/json" doc:name="My Service call"

Configured jetty server in mule esb

大憨熊 提交于 2020-01-17 06:28:15
问题 I want to Configured embedded jetty server in mule esb. I have tried many thing but unable to get success. Please give me step how to configured. I want to make webinf folder in which I can host servlet file and jsp file. I have seen online book example, but It is not working in my mulestudio. I am getting folder structure error. I have also tried to search but didn't get any working example. 回答1: In mule-config.xml add the fillowing :- <?xml version="1.0" encoding="UTF-8"?> <mule xmlns="http

How to Check null condition in Data weaver : Mule

喜你入骨 提交于 2020-01-01 12:09:30
问题 Here is my xml, in that first I need to check 'RecordsEntries' should not be 'null', then RecordEntry shouldn't be null followed by mapping code <?xml version="1.0" encoding="UTF-8"?> <Records> <storenumber /> <calculated>false</calculated> <subTotal>12</subTotal> <RecordsEntries> <RecordEntry> <deliverycharge>30.0</deliverycharge> <entryNumber>8</entryNumber> <Value>true</Value> </RecordEntry> <RecordEntry> <deliverycharge>20.0</deliverycharge> <entryNumber>7</entryNumber> <Value>false<

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

倖福魔咒の 提交于 2019-12-31 05:51:33
问题 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. 回答1: I recommend you execute this operation using the quartz connector. Here's an example: <flow name="repeatIntervalFileFlow" doc:name="repeatIntervalFileFlow"> <quartz:inbound

How to respond custom JSON to HTTP request in MULE ESB

主宰稳场 提交于 2019-12-25 02:42:59
问题 i am using mule studio i am connecting to postgressql for data selection i am doing well i just struck in middle .i am sending curl request to mule like this curl -H "Content-Type: application/json" -d '{"id":"1"}' http://localhost:8081/selectdb i am getting response from database but unable to format the data as per client requirement. my config is like this <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" xmlns:scripting="http://www.mulesoft

mule post json data to mule endpoint url

自作多情 提交于 2019-12-25 02:07:20
问题 <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP" contentType="application/x-www-form-urlencoded" path="getDetails" /> <object-to-string-transformer doc:name="Object to String"/> <logger message=" Logging ...... #[message.payload]" level="INFO" doc:name="Logger"/> <logger level="INFO" message=" Logging mule.......#[message.payloadAs(java.lang.String)]" doc:name="Logger"/> <logger level="INFO" message="Logging demo .......... #[payload]"

mule post json data to mule endpoint url

試著忘記壹切 提交于 2019-12-25 02:05:43
问题 <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP" contentType="application/x-www-form-urlencoded" path="getDetails" /> <object-to-string-transformer doc:name="Object to String"/> <logger message=" Logging ...... #[message.payload]" level="INFO" doc:name="Logger"/> <logger level="INFO" message=" Logging mule.......#[message.payloadAs(java.lang.String)]" doc:name="Logger"/> <logger level="INFO" message="Logging demo .......... #[payload]"

Global Catch Exception Strategy is not used

烈酒焚心 提交于 2019-12-25 01:49:23
问题 I have defined a global exception strategy, but when Mule executes my Groovy script it does not execute the Global Catch Exception Strategy, but rather executes the org.mule.exception.DefaultSystemExceptionStrategy. <!-- Define Global Catch Exception Strategy --> <catch-exception-strategy name="catchExceptionStrategy"> <logger level="ERROR" message="Component X: #[exception]" doc:name="Logger"/> <logger level="ERROR" message="Component X: E1_Error Service exited with errors. Please see the

mule move file to another location dynamically from the db query

被刻印的时光 ゝ 提交于 2019-12-25 01:48:13
问题 I want to move files to location D:\target dynamically from the query select filepath from emp where status='y' : This is my table: emp_Name File Path File Name Status ABC D:\emp abc.txt y xyz D:\emp xyz.txt y bcs D:\emp bcs.txt n Following is my source code : <flow name="testdbFlow1"> <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP" /> <jdbc-ee:outbound-endpoint queryKey="allEmps" queryTimeout="-1" connector-ref="JDBCConnector" exchange-pattern="request