mule

How to catch exceptions in the Mule foreach scope but keep the process going?

女生的网名这么多〃 提交于 2019-12-22 08:44:02
问题 I am new to Mule ESB. I have created a simple flow that loops through a list of orders and calls the Magento API to update the order statuses one by one. My problem is that if there are any exception occurs in the foreach scope, the whole process tops. I tried to use the Exception Strategy to capture the exception and it did capture the exception. But how to resume the process? I didn't find much info with google search. Maybe I was doing something wrong with the flow. How do we normally

Source Code for Mule ZenDesk connector?

只愿长相守 提交于 2019-12-22 00:26:17
问题 The source code for many of the MuleSoft's connectors is available on their GitHub page. But I haven't found the source code for their Zendesk connector and Google isn't being very helpful. The reason I'm looking is that I'm still trying to debug the “null (java.lang.UnsupportedOperationException). Message payload is of type: ZendeskConnector$1” error I posted about before. I'm really stumped, but I thought if I looked at the source it might give a clue. 来源: https://stackoverflow.com

ESB MULE passing the parameters to the java method

﹥>﹥吖頭↗ 提交于 2019-12-21 21:26:58
问题 I use MULE version 3.3.0 CE, I want to get some value from header in inbound and then pass it to a java method, in java method making some changes on passed value, finally again I pass it from java method to the outbound???? 回答1: Instead of tying your Java beans to the Mule API (with Callable ), you can do this using MEL only, for example with: <invoke object-ref="yourBean" method="yourMethod" methodArguments="#[message.inboundProperties['inboundPropertyName']]" /> <set-property propertyName=

Spring3 Dependency Injection not working with mule

余生颓废 提交于 2019-12-21 20:17:05
问题 I am unable to inject customerDao object in reference variable inside CustomerServiceImpl service class. Here is my mule_flow.mflow file <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="CE-3.3.0" xmlns:xsi="http:/

Deploy War into Mule Standalone server

强颜欢笑 提交于 2019-12-21 19:43:39
问题 I've got a mule-standalone server with an application I'm working on. Many of the services this application uses will be moved out of the Mule container into a JBoss cluster in the future. Because of this, I'm keeping a strong separation between the mule flows, and the Web Services. However, as of right now, I need to deploy the War file on the same server as my Mule application. It seems like Mule should be able to run my War within it. Does anyone know if this is possible? I'm OK with

Difference between Hub, Spoke and ESB

拈花ヽ惹草 提交于 2019-12-21 17:37:16
问题 I know theres already a good question on this, but it doesn't really answer what I'm looking for. From what I understand: 1.both are used as a central focal point between applications 2.both can use routing/mediation/transformation etc. between services/apps But the only difference i can really see is that hub and spoke typically have many different formats entering the hub(SOAP/REST/XML/JSON...) while ESB typically has a standard format(Usually just SOAP.) Also I keep reading that hub and

Adding authorization to a third-party web service

≯℡__Kan透↙ 提交于 2019-12-21 06:23:40
问题 I have several third-party web services of which I only have their WSDL's. Currently they are only accessible in my internal network. I would like to expose those web services to the internet but, since they read/write sensitive information, I would need some sort of authentication mechanism in order to assure that only certain users are able to invoke them. The idea is to expose exactly the same interface (same operations with the same parameters) but intercepting each invocation to check

Mule ESB: how to filter emails based on subject or sender?

让人想犯罪 __ 提交于 2019-12-21 05:48:26
问题 I am new to Mule 3.3 and I am trying to use it to retrieve emails from a POP3 server and download the CSV attachments if the sender field and subject field contain certain keywords. I have used the example provided on Mulesoft website and I have successfully managed to scan my inbox for new emails and only download CSV attachments. However, I am now stuck because I can't figure out how to filter emails by subject and sender fields. Doing some research I have come across a message-property

Testing sub-flows in Mule

社会主义新天地 提交于 2019-12-21 04:49:18
问题 I have started writing test cases to my Mule project. I have written the functional test case for my Main Flows as follows. public void testMainFlow_1() throws Exception{ MuleClient client = muleContext.getClient(); MuleMessage result = client.send(helloServiceAddress, fileAsString("SamplePayloads/input_Request.xml"), properties); assertNotNull("Null Result", result); assertEquals(result.getPayloadAsString(), fileAsString("SampleResponses/sampleResponse.xml")); } But how can I test my sub

How to run a flow once, automatically when starting mule?

半世苍凉 提交于 2019-12-21 04:25:20
问题 I have a java class that creates a clean MongoDB database with seeded collections. It automatically identifies if the database is missing and creates it. I would like to run this when I start MuleEsb. This way I don't need to remember to invoke it before I start mule. I was hoping to put it inside a flow and run that flow once, automatically when mule starts up. Is there a way to do this one-time operation when mule starts? --- Update --- As per the conversation below I added the following to