mule

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

Why DB response ( resultSets) are being divided in two splits in Mule ESB

前提是你 提交于 2019-12-25 01:32:59
问题 I'm querying DB to get the response through Mule. Response are being populated, but not sure why it is being divided inside resultSet1 (if it is larger). Could see here in logger, ResultSet1 end tag is </custo ( not completly finished as ), it is being extended with same Key( XML_F5RYI-11YTR ) and there it is finished mers> . Do I need to do any configuration settings in Mule DB level to propogate all the resultSet1 in same level ? Actually My ultimate aim is to extract the resultSet1, second

Mule ESB - design a multi file processing flow when files are dependent on each other

笑着哭i 提交于 2019-12-25 01:04:58
问题 Okie...I am aware of Datamappers, Batch and streaming support in File inbound elements. What i want to know is the design pattern for integration when: You have multiple files (csv or xml) to process eg: 1 file named products.csv contains all details about products. Another file images.csv has URLs to images of each product listed in the products.csv file. Another file lets say prices.csv has details of prices of each product. All the files are linked to each other using a PK type e.g:

Unable to install custom connector in mule

北战南征 提交于 2019-12-24 23:27:00
问题 I have developed the custom connector using the tutorial given Hello-Connector The build was successful after running the maven command from the console. When I try to install the connector in my mule studio, it is not able to locate it at the specified path. The structure of the UpdateSite.zip folder is 回答1: Per https://stackoverflow.com/a/8406282/387927 shouldn't the path start with: file:///D:/Mule/Examples/... ? 来源: https://stackoverflow.com/questions/23863570/unable-to-install-custom

How to loop over the keys/values of a objectstore in mule flow

£可爱£侵袭症+ 提交于 2019-12-24 17:25:37
问题 I want to iterate over all the values of the objectstore entries and log them in a mule flow. I am trying to do something like this -- is this correct or there is something better. I don't want to use java. <objectstore:allkeys config-ref="ObjectStore" targetProperty="PropertyKey" targetScope="SESSION"/> <foreach collection="#[PropertyKey]" doc:name="Splitting Locations_XML into chunks"> <logger message="Key--#[payload]" level="INFO" doc:name="Logger"/> <objectstore:retrieve key="#[payload]"

MULE: xpath expression not extracting values from payload

我的梦境 提交于 2019-12-24 16:56:36
问题 I've got a simple flow, it takes an XML messages, splits it into sub elements and now I am trying to get a value, but getting unexpected results. My XML looks like this: <?xml version="1.0" encoding="UTF-8" ?> <ns0:RewardOfferDetail xmlns:ns0="http://example.com/schemas/v1_0/RewardOffer"> <ns0:Offer> <ns0:OperationCode>U</ns0:OperationCode> </ns0:Offer> <ns0:Offer> <ns0:OperationCode>A</ns0:OperationCode> </ns0:Offer> </ns0:RewardOfferDetail> I need to extract the <OpeartionCode> from each

MULE ESB Server: RAML loading for prolonged time

萝らか妹 提交于 2019-12-24 16:32:55
问题 I created a mule application and able to run/deploy it on my machine successfully. On running api-console is appearing in Anypoint-studio like this. Now when I deployed this application on mule ESB server and try to hit api-console for this application using the following URL "https://mulesoft:ESB****/api/console" Mule is saying RAML loading for prolonged time like the one shown in below image. I am not able to resolve the issue after working hours on it, If anyone can suggest possible

Output Encoding issue in mule esb

杀马特。学长 韩版系。学妹 提交于 2019-12-24 16:13:52
问题 I have used to do create XML using "Transform Message" Node in Mule ESB. %dw 1.0 %output application/xml item: { name: payload."profile_name", id: payload."profile_Id" } This shown a preview of output xml as <?xml version='1.0' encoding='windows-1252'?> <item> <name> <profile_name>????</profile_name> </name> <id> <profile_Id>1</profile_Id> </id> </item> This resulted encoding as 'windows-1252' how can i change encoding as 'UTF-8' in my outpout xml ? 回答1: Go to your Anypoint Studio folder.