mule-studio

how to add image in email velocity transformer templates from classpath

我与影子孤独终老i 提交于 2019-12-13 03:59:19
问题 I am using Velocity Transformer email template with my Mule smtp. Is there any ways that I can add images in the email templates from my classpath ? That is for example .. if I have an image say abc.png in my classpath, can I able to use it in my velocity email template like < image src= ...... 回答1: You can add outbound attachments to the Mule Message, using classpath resources as their source. These Mule Message attachments will be turned into MIME parts by the SMTP outbound transformer.

Mule Enrichment: enrich xml payload with http endpoint response

匆匆过客 提交于 2019-12-13 03:44:43
问题 I'm new to mule and working on a POC. I want to enrich the payload(target.xml) by calling an http endpoint which returns xml as response (source.xml) . <flow name="mule-configFlow" doc:name="mule-configFlow"> <jms:inbound-endpoint doc:name="JMS" connector-ref="Active_MQ" queue="QUEUE1"/> <logger message="#[message.payload]" level="INFO" doc:name="Logger"/> <enricher doc:name="Message Enricher" target="#[xpath:Customer/OfficeId]"> <http:outbound-endpoint exchange-pattern="request-response"

using mule variable value in xpath expression

我只是一个虾纸丫 提交于 2019-12-13 03:24:44
问题 I have a variable set as <set-variable variableName="productIdvar" value="#[xpath://productId]" doc:name="Variable" /> On logging its coming right, I want to use the value of the variable productIdvar in my xpath expression, <when expression="//*[local-name()='itemid']=?" evaluator="xpath"> or <when expression="#[xpath://*[local-name()='itemid']=?]"> What should i use in place of ? to get the value of the variable? Thanks Rahul. 回答1: The following expression should work for you. <when

“Executed multiple catch exception strategy ”

陌路散爱 提交于 2019-12-13 03:21:06
问题 I have choice exception strategy where I have multiple catch exception strategy there I am applying condition based on the error. Error 1: org.mule.api.MessagingException: Column 'department_id' cannot be null (java.sql.SQLIntegrityConstraintViolationException). Error 2: org.mule.api.MessagingException: org.mule.module.db.internal.domain.connection.ConnectionCreationException: Cannot get connection for URL jdbc:mysql://localhost:3306/mulesoft : Access denied for user 'root1212'@'localhost'

Error in mule flow - Message payload is of type: byte[]

你离开我真会死。 提交于 2019-12-12 20:48:10
问题 I am able to get to the subflow named method (refer snippet below) using localhost url with a valid payload. If I had to pinpoint, following xpath expression evaluation is failing #[xpath://Envelope/Body/add] with an error saying Message payload is of type: byte[] I have tried using transformers (byte-array-to-string, byte-array-to-object, object-to-xml etc.) but nothing seems to resolve this. <flow name="version1" > <http:inbound-endpoint ........ /> <set-variable variableName="req" value="#

Reconnection strategy in Mule ESB

北城以北 提交于 2019-12-12 15:35:48
问题 I am trying to verify the Reconnection strategy in Mule ESB as mentioned in the documentation. I have set the standard Reconnection strategy with retry attemts as 5 and with some timeout. (My end point is not reachable, as intentionally stopped it to test the scenario). I have the exception in the Mule console as: Exception stack is: 1. Connection refused: connect (java.net.ConnectException) java.net.DualStackPlainSocketImpl:-2 (null) 2. Failed to route event via endpoint:

Change the prefix in CXF with interceptor

半世苍凉 提交于 2019-12-12 08:59:32
问题 I am trying to change <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> to <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> I am using Mule and CXF. We are exposing a SOAP service and the wsdl is from a legacy system (we imported it and generated the classes). It is necessary to change the prefix from 'soap' to just 's'. I see that this is possible with an Interceptor, but for some reason I cant make it work. Here is the code for my

Service is not initialize while embeding tomcat with mule esb

倖福魔咒の 提交于 2019-12-12 06:06:06
问题 I follow all the steps define in the following link http://www.mulesoft.org/documentation/display/current/Deploying+Mule+as+a+Service+to+Tomcat Instead of > <Listener > className="org.mule.config.builders.MuleXmlBuilderContextListener" /> I used > **<Listener className="org.mule.module.tomcat.MuleTomcatListener" />** And my tomcat also started. I also deploy my war file into webapps folder. I didn't get any error while deploying war file.. But problem is my service didn't initialize..

How to pass Headers using HTTP component in Mule

强颜欢笑 提交于 2019-12-12 05:59:27
问题 Hi I am working with Any Point Studio and i want to pass headers with the current request with a key value pair How to achieve that using existing HTTP Component. 回答1: You can invoke the HTTP Inbound through Mule Client, here is an example: MuleClient muleClient = new MuleClient(muleContext); Map<String, Object> headers = new HashMap<String, Object>(1); headers.put("key", "456453N123"); MuleMessage result = muleClient.send("http://localhost:8081/prm", PAYLOAD, headers); The HTTP headers are

MULE error [main] org.mule.module.launcher.application.DefaultMuleApplication: null

断了今生、忘了曾经 提交于 2019-12-12 05:39:05
问题 I'm getting the following error while trying to run my MULE project in MuleStudio 3.5. I was running the same project 2 weeks ago and have not made any changes to this particular project. The only thing I've done is add a new project to the workspace. If I try to run the new project I get the same error. I also tried removing the new project, but that didn't work. However, I have other projects in the workspace that are working fine. Any thoughts or ideas would be greatly appreciated. +++++++