mule

Mule flow with Jms connector, Threads blocking in dynamic outbound endpoint

时间秒杀一切 提交于 2020-01-06 08:16:16
问题 I have a jms connector, i am receiving message from a queue processing the message in a flow, calling db to get the data based on some ids in the message and writing response output to files, i am using dynamic outbound endpoints to decide output location. <jms:connector name="tibco" numberOfConsumers="20" ..... > ..... </jms:connector> <flow name="realtime" doc:name="ServiceId-8"> <jms:inbound-endpoint queue="${some.queue}" connector-ref="tibco" doc:name="JMS"> <jms:transaction action=

Mule Echo component changes the message

孤街醉人 提交于 2020-01-06 08:04:03
问题 The Mule Echo component is meant to output the current message to the console. As far as the documentation goes the Echo component shouldn't change the message in any way. However I have noticed that it does have an effect on the message seemingly similar to an Object to String component. Is this expected or is it a bug? 回答1: It is expected. Use the <logger> message processor, which is a replacement of the obsolete Echo Component, and which doesn't log the message payload by default, i.e.

Mule Quartz - Cron for all week days except 1st day of month

微笑、不失礼 提交于 2020-01-06 06:07:07
问题 The cron expression 0 30 4 2-31 * MON-FRI * is invalid because of error: java.text.ParseException: Support for specifying both a day-of-week AND a day-of-month parameter is not implemented. But maybe there is another way to specify such cron expression: Execute every weekday except first day of month on 4:30. Is it possible using W parameter? I'm using Quartz Crone expression in MuleSoft quartz:inbound-endpoint configuration. 回答1: http://www.quartz-scheduler.org/api/2.1.7/org/quartz

Getting Response 404 while posting JSON payload to POST Rest API

烈酒焚心 提交于 2020-01-06 05:57:26
问题 I'm trying to post a JSON payload to a Public POST Rest API in MuleESB but I'm getting this error: org.mule.module.http.internal.request.ResponseValidatorException: Response code 404 mapped as failure. I'm able to call the API with JSON body via Postman Chrome App, but not via Postman Desktop App or MuleESB. I've Google-ing around in the past 2 days but still have no clue what I'm missing. Please enlighten me if you have a clue what caused this not to work. This is the JSON payload: {

How to browse a file in raml language?

别等时光非礼了梦想. 提交于 2020-01-06 03:58:24
问题 I want to browse a file in RAML like the tool postman: But when I write in RAML language is not support for that: body: multipart/form-data: formParameters: file: description: The file to be uploaded required: true type: file And It doesn't have button "Browse", so I don't know how to attach a file to endpoint: 回答1: This is missing in the API Console as the spec for the file type is clear on the necessity to support file uploads for RAML tooling: file (Applicable only to Form properties)

NoSuchMethodError in Tomcat embedded MULE when executing http:set-cookie

依然范特西╮ 提交于 2020-01-05 20:03:22
问题 When running Mule ESB 3.2.1 as embedded server inside Tomcat 7.0.27 (executed with webapp-runner), during execution of a flow with the Http endpoint, while sending response back to caller, an Exception is raised: java.lang.NoSuchMethodError: org.apache.tomcat.util.http.ServerCookie.appendCookieValue(Ljava/lang/StringBuffer;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZ)V Exception Below: org.mule.api.MuleRuntimeException: Connector that caused

org/apache/http/util/Args (java.lang.NoClassDefFoundError). Message payload is of type: String

╄→гoц情女王★ 提交于 2020-01-05 14:12:43
问题 My mule application is able to run with the following maven dependencies. <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk</artifactId> <version>1.9.40</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> <version>4.4.1</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.4.1</version> </dependency> It runs smoothly, however as soon

Write Multiple queries in database connector in Mule

末鹿安然 提交于 2020-01-05 05:10:13
问题 I want to write select and insert queries for 3 tables for the same database using a database connector. I want to know is there a alternative or how can it be done using 1 database connector? I ended up using 5 database connector. But I think this makes the flow look complicated. Is there any other way of doing this. 回答1: You are going in a wrong way :) It can be achieved by a single DB connector performing 3 different operations. Pls go through the documentation here :- https://docs

Mule ESB and “multipart/form-data”

三世轮回 提交于 2020-01-05 04:49:20
问题 I have a working Web service that allows me to upload a file. I'd like to put Mule 3 in front of it but I have not been successful in getting it to pass along payloads whose MIME type is "multipart/form-data". Attempts to do so produce a 400 error: "The request sent by the client was syntactically incorrect (Bad Request)." The following flow (which doesn't accomplish my purpose but serves as a test) works fine, passing along whatever text I POSTed. <flow name="Flow1" doc:name="Flow1"> <http

Please advise on the WSDL

那年仲夏 提交于 2020-01-05 04:29:29
问题 I have created a WSDL to create a greeting service. Given below is the WSDL. I am using thsi wsdl to create a generate and expose a web-service using the cxf:proxy-service in mule. This is giving me errors. Please review and help me undertand what is the problem with this WSDL. <?xml version='1.0' encoding='UTF-8'?> <wsdl:definitions name="HelloService" targetNamespace="http://example.org/HelloService" xmlns:tns="http://example.org/HelloService" xmlns:ns1="http://schemas.xmlsoap.org/soap/http