mule

Authentication between Mule/Anypoint JMS and JBoss/Wildfly9?

最后都变了- 提交于 2019-12-25 03:54:58
问题 I'm struggling with a small proof of concept for a feature we need for a bigger project. On my local machine I have a Wildfly 9 installation (with a user, password, and group configured). I can send messages via HornetQ from a small Java program, and I can fiddle with <security-enabled> and the user/password and see that it works, or not, as I expect. Great! However, I also have a simple Mule flow that attempts to send a message via a JMS outbound endpoint -- but this always fails with "

How do you accumulate values within a ForEach loop in Mule?

一世执手 提交于 2019-12-25 03:32:14
问题 I have the below json output: { "results": [ { "ID": "1", "ImageID": "2", "Name": "Test1", "Owner": "sysadmin", "Author": "sysadmin", "Creator": "sysadmin" }, { "ID": "2", "ImageID": "23", "Name": "Test2", "Owner": "sysadmin", "Author": "sysadmin", "Creator": "sysadmin" } ] } For each ID in above response, i need to invoke the rest service passing ID as a parameter and the rest service will send me a response back. I have to consolidate all the output into a single json response in mule. I

How do you accumulate values within a ForEach loop in Mule?

只愿长相守 提交于 2019-12-25 03:32:01
问题 I have the below json output: { "results": [ { "ID": "1", "ImageID": "2", "Name": "Test1", "Owner": "sysadmin", "Author": "sysadmin", "Creator": "sysadmin" }, { "ID": "2", "ImageID": "23", "Name": "Test2", "Owner": "sysadmin", "Author": "sysadmin", "Creator": "sysadmin" } ] } For each ID in above response, i need to invoke the rest service passing ID as a parameter and the rest service will send me a response back. I have to consolidate all the output into a single json response in mule. I

Mule ESB: How to take all the files in a folder inside Bucket of Amazon S3 ( get object content)

杀马特。学长 韩版系。学妹 提交于 2019-12-25 03:14:10
问题 i'm using Amazon S3 , My bucket have mutiple files in a input folder.i need to take all files in a folder and process it, right now i can able to take one file and process it by providing the key value. But not sure how to take all the files in a bucket (input is my folder name in a bucket) at a one shot. Please find my config below <s3:config name="Amazon_S3" accessKey="myKey" secretKey="MySecretkey" doc:name="Amazon S3"/> <flow name="s3Flow1" doc:name="s3Flow1"> <http:inbound-endpoint

Unflattening view data to JSON with Mule DataMapper

冷暖自知 提交于 2019-12-25 03:11:40
问题 I've got a database view that I need to send to a Web API call in JSON format, but I'm having a hard time figuring out how to get the datamapper to un-flatten the data. The format I want to get to is something like: { "PersonId": "12345" , "CommonProp": "asdf" , "DataForPerson": [ { "Prop1": "prop 1 value A", "Prop2": "prop 2 value A" } , { "Prop1": "prop 1 value B", "Prop2": "prop 2 value B" } ] } The format coming in from the view is something like: PersonId CommonProp Prop1 Prop2 12345

SQL Update statement with MEL expression - Mule

别等时光非礼了梦想. 提交于 2019-12-25 03:00:17
问题 I have a SQL UPDATE statement, to update a particular record to the Database within a mule flow. I am having problems with including MEL expression within the statement and the SQL is not getting executed in my flow. I am trying the next command: UPDATE CUSTOMERS SET STATUS=#[flowVars['TxnStatus']] WHERE REF_NUM=#[flowVars['ReferenceNumber']] where TxnStatus and ReferenceNumber are flow variables in my mule Flow. It looks seemingly simple, but the record is not updated. When I try a similar

SQL Update statement with MEL expression - Mule

半腔热情 提交于 2019-12-25 02:59:45
问题 I have a SQL UPDATE statement, to update a particular record to the Database within a mule flow. I am having problems with including MEL expression within the statement and the SQL is not getting executed in my flow. I am trying the next command: UPDATE CUSTOMERS SET STATUS=#[flowVars['TxnStatus']] WHERE REF_NUM=#[flowVars['ReferenceNumber']] where TxnStatus and ReferenceNumber are flow variables in my mule Flow. It looks seemingly simple, but the record is not updated. When I try a similar

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 ESB Google Cloud Messaging

本秂侑毒 提交于 2019-12-25 02:40:46
问题 I am trying to create a flow that sends a push notification via the google cloud messaging service. I have used the mule connector for gcm. However I cannot get it to work. My config: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:gcm="http://www.mulesoft.org/schema/mule/gcm" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule

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]"