mule

How does Mule IDE create pom.xml? Why it is adding EE dependencies?

偶尔善良 提交于 2019-12-24 15:36:30
问题 When I create a new project in mule studio, it adds mule EE dependencies in autogenerated pom.xml. Any idea why it's doing that? <!-- Mule Dependencies --> <dependencies> <dependency> <groupId>org.mule</groupId> <artifactId>mule-core</artifactId> <version>${mule.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.mulesoft.muleesb.modules</groupId> <artifactId>mule-module-boot-ee</artifactId> <version>${mule.version}</version> <scope>provided</scope> </dependency

How to run an imported maven based mule project in Anypoint Studio

旧街凉风 提交于 2019-12-24 14:58:20
问题 My mule maven based project created in eclipse is checked into svn. I want to run it in Anypoint Studio. So I imported it as Maven based project from SVN. But Studio doesn't recognize it as Mule project. Any pointers? 回答1: If your project is a Maven project then it should be having a pom.xml file. From anypoint studio do an import of Maven project from pom.xml and point to the location where your project resides. it should automatically find the pom.xml inside and import it successfully. 回答2:

override sessionHandler using http:listener-config

你离开我真会死。 提交于 2019-12-24 14:34:17
问题 I need to migrate a http NoSessionConnector defined in mule 3.3.1 in this way: <http:connector name="NoSessionConnector"> <service-overrides sessionHandler="org.mule.session.NullSessionHandler" /> </http:connector> to the new http:listener-config but I cannot put service-overrides inside http:listener-config tag nor inside http:listener tag. Both configurations are not permitted: <http:listener-config name="httpListener" host="localhost"> <service-overrides sessionHandler="org.mule.session

How to invoke a java component in Mule

馋奶兔 提交于 2019-12-24 12:08:28
问题 I'm using the following SOAP client to inovke a web service in Apache OFBiz: public class CreatePerson { private static OMFactory fac; private static OMNamespace omNs; public static String fname; public static String lname; static { fac = OMAbstractFactory.getOMFactory(); omNs = fac.createOMNamespace("http://my-ip-adress/service/", "ns1"); } public static void main(String[] args) throws AxisFault { ServiceClient sc = new ServiceClient(); Options opts = new Options(); opts.setTo(new

Mule 3.3.1 until-successful losing messages due to busy threads

醉酒当歌 提交于 2019-12-24 12:05:40
问题 I have 2 flows. FlowA receives calls (htp-inbound) and places message on a queue. FlowB picks up messages from this queue and enters until-successful loop. Until successful makes an outbound call. <flowA> <http-inbound/> <put message on queueA/> </flowA> <flowB> <jms:inbound queueA> <until-successful> <http-outbound/> </until-successful> </flowB> I am running this in Debug mode with a breakpoint where outbound call is made within untilsuccessful. I see that every call creates a new thread

Masking of fields in Mule

故事扮演 提交于 2019-12-24 07:57:45
问题 I want to be able to mask a certain field from the current message payload in Mule, when logging it to a file. The field I want to mask is a sensitive value (say account number, or social security number) in a SOAP payload. This is to eliminate security risks. However, I also need to use the value later, after masking it. My current approach I am storing the current #[payload] in a session, and then modifying the current payload to replace the sensitive data by * * * *, using an XSLT

Masking of fields in Mule

荒凉一梦 提交于 2019-12-24 07:57:34
问题 I want to be able to mask a certain field from the current message payload in Mule, when logging it to a file. The field I want to mask is a sensitive value (say account number, or social security number) in a SOAP payload. This is to eliminate security risks. However, I also need to use the value later, after masking it. My current approach I am storing the current #[payload] in a session, and then modifying the current payload to replace the sensitive data by * * * *, using an XSLT

Validation of Payload in ESB

只愿长相守 提交于 2019-12-24 07:19:35
问题 I have a HTTP POST REQUEST which sends a payload as follows: { "key1" : "value1", "key2" : "value2" ,"key3": "value3" } I was able to validate all the values but I had to use a component everytime. In this case , I used the validator "Not a blank string" 3 times. 1. Is there any way that I can validate all the three values in a single validator ? 2. Should I use Scatter-Gather for validating all the values in parallel(according to best-practices) ? 3. How can I validate the key set(the key

foreach in xml-node return null in mule esb

大憨熊 提交于 2019-12-24 02:42:52
问题 I am using below flow. <flow name="mytestFlow1" doc:name="mytestFlow1"> <http:inbound-endpoint mimeType="text/xml" path="xmltest" exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/> <foreach collection="#[xpath://file//data//deliveryOrder]" doc:name="For Each" > <echo-component /> <logger level="INFO" message="#[payload]" /> <logger level="INFO" message="#[rootMessage]" /> </foreach> </flow> and posting below xml. <file> <data> <deliveryOrder> <deliveryMethod

Content based file moving with Mule

我是研究僧i 提交于 2019-12-24 01:24:12
问题 My mule config file contains the below flow: <flow name="HTTP input1"> <ftp:inbound-endpoint user="username" password="secret" host="host" path="location" port="21"> <file:filename-wildcard-filter pattern="." /> </ftp:inbound-endpoint> <file:outbound-endpoint path="E:/Mule/Inbound" outputPattern="#[header:originalFilename]" > </file:outbound-endpoint> </flow> I'm able to move the files but what I need is to read out the file content and based on that content place it in specific directory.