mule

Resource not found on localhost using Anypoint Studio (MULE)

烈酒焚心 提交于 2019-12-14 02:13:15
问题 I tried to do the tutorials suggested on the MuleSoft's website. I first started with this example: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" 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="EE-3.6.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema

log4j2.xml configuration from file for mule applications in mule 3.6.2

陌路散爱 提交于 2019-12-14 00:27:43
问题 How can I get the configuration from a specific file like '/opt/applications/app1/log/config/log4j2.xml' for a mule application in mule 3.6.2. The common way is to get the configuration from a config file log4j2.xml which is stored in the resource folder, we need to read this configuration file from other external path. 回答1: By default, Mule use its own log4j2 file for logging. To read log4j2.xml configuration file from external path, add the next beans in your file Application Context, For

FileNotFound exception while loading from a .properties file in Mule

混江龙づ霸主 提交于 2019-12-13 21:27:09
问题 I'm trying to load values from a .properties file in Mule and I get a FileNotFound exception when the file clearly exists. I've tried putting the file inside the project directory, using relative path but nothing works. Here is relevant stuff from my Mule flow - <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:context="http://www.springframework.org/schema/context" xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:mulexml="http:/

reading soap header element in payload

偶尔善良 提交于 2019-12-13 20:51:57
问题 I need to read contents of wsse:Username(which is part of soap header) from following soap payload in mule using message-properties-transformer. I would like to use this variable somewhere else. Soap Webservice request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:spel="http://mobistar.be/spellchecker/"> <soapenv:Header> <wsse:Security soapenv:mustUnderstand="1" > <wsse:UsernameToken wsu:Id="UsernameToken-1"> <wsse:Username>Tester01</wsse:Username> </wsse

Unable to find DB2 connector in Anypoint Studio

爷,独闯天下 提交于 2019-12-13 20:33:49
问题 I am trying to install the DB2 connector in Mule Studio. I am using Anypoint Studio October 2014 Release. I tried following the instructions given here: http://www.mulesoft.org/connectors/db2-connector-3.4.0%3B3.5.0-Everest#install but am unable to find the connector in any of the available sites. How do I install it? 回答1: You must use Database building block and Generic Database Configuration with the DB2 JDBC Connector. Here you can find the DB2 JDBC Connector: http://www-01.ibm.com/support

Issue writing file to sftp - carriage return removed

馋奶兔 提交于 2019-12-13 20:28:20
问题 I have a simple requirement where i have to write a csv to linux sftp . In the current implementation Which I have done CR-'carriage return' is being removed when writting the csv to sftp using mulesoft sftp connector . I have set encoding=US-ASCII on the sftp connector , in the dataweave , even in the property file as mule.encoding=US-ASCII. Nothing seems like working in cloud hub , but surprisingly the same works fine in my local . I understand after reading few blogs/ white papers that

Mule: How to dynamically set a url on an http request endpoint

僤鯓⒐⒋嵵緔 提交于 2019-12-13 19:33:13
问题 Using the deprecated http implementation it was possible to dynamically set the url on an outbound http endpoint from the payload or properties: <http:outbound-endpoint address="http://#[payload]" method="GET" /> Is it possible to do this using the new http request connector? 回答1: Yes, it is. Here is a simple example: <http:request-config name="HTTP_Request_Configuration" host="#[flowVars.address]" port="80" basePath="/" doc:name="HTTP Request Configuration"/> <flow name="httpFlow"> ... <set

Mule cxf:proxy endpoint behind load-balancer uses http in soap service address

孤者浪人 提交于 2019-12-13 19:22:04
问题 As title, we had a simple service design that uses a cxf:proxy endpoint inside an http-inbound enpoint, and the Mule server is behind load-balancer which does ssl offloading. When user requested with https ://url?wsdl, in the returned wsdl, we found mule writes the service address in http . Is there any way that we could change it to https here? We are using mule 3.5.2 here. PS. The Load-balancer is F5 and belongs to 'network team', we could ask for the X-Forwarded-Proto header, but only if

Configuring the Mule JPA module to use Eclipse Link and MySQL

ぃ、小莉子 提交于 2019-12-13 15:55:37
问题 I'm trying to write a Mule ESB application that reads an XML file into a domain object and then writes that object to a MySQL database using JPA. I have figured out most of the needed config but I am running into a problem where the Mule JPA module (https://github.com/mulesoft/mule-module-jpa) doesn't seem to be committing the sql queries. I have set the Mule JPA component to flush the queries and I can see them being written to the MySQL general log but a COMMIT is never done, so the data

Anypoint Studio fails when running Maven project

☆樱花仙子☆ 提交于 2019-12-13 15:25:06
问题 I am a Mule newbie and struggling to get the Anypoint Studio to work with Maven. I used the mule-maven plugin to create a multi-module project and added my code to the apps sub-project. The project builds under maven and produces a zip file under the domain-bundle/target directory. The contents of the zip file looks reasonable. When I tried to run the project (right click project/run as/Mule application with Maven) the project gets built by maven and then I get the following Using as WTP