FAQ Database Discussion Community


Mule:Retrieving object store in an MEL in Mule 3.5

mule,mule-studio,mule-component,mule-el
Having a requirement to test a object store whether it contains a key or not in a choice router <objectstore:config name="storeDownload" doc:name="ObjectStore" persistent="false" partition="test"/> <choice> <when expression="#[app.registry.storeDownload.contains('#[flowVars.startKey]').equals('false')]"> Getting an error 1. Expression Evaluator "registry" with expression "ON" returned null but a value was required. (org.mule.api.expression.ExpressionRuntimeException) org.mule.expression.RegistryExpressionEvaluator:101...

Mule Web Service Consumer Warning : Operation Messages With More then 1 Part Are Not Supported

mule,mule-studio,mule-el,mule-component
Hi I am working with Mule Web Service Consumer and i was trying to call operation with Multiple Parameters it is warning me that Warning : Operation Messages With More then 1 Part Are Not Supported I just want to pass multiple parameters to access my SOAP method to achieve...

How to access Mule flow variables in java code?

java,mule,mule-el
Browsing around, I found something that look like below: import org.mule.api.MuleMessage; import org.mule.api.transformer.TransformerException; import org.mule.transformer.AbstractMessageTransformer; import java.util.Scanner; public class javaTest extends AbstractMessageTransformer{ public Object transformMessage(MuleMessage message, String outputEncoding) throws TransformerException{ message.getInvocationProperty("test"); return message; } } I am using this code, where message is a Mule flow variable that I just...

Mule:Assigning objectstore variable value to a flowVar

mule,mule-studio,mule-component,mule-el
I have to maintain a count of messages (processing various different type of messages) that are processed in a flow. Using mule object store extension for this purpose <objectstore:config name="storeDownLoad" doc:name="ObjectStore"/> <objectstore:store key="countA" value-ref="3" config-ref="storeDownLoad" /> How can i add one for each key value and reassign it to object...

Mule: Key of a map contained in a spring bean to be constructed at runtime by concatenating from flowvar and a property in MEL

mule,mule-studio,mule-component,mule-el
Having a hashmap in a spring bean(detail) whose keys at runtime are to be constructed using a concatenation of flowVars (msVendorCode) and a property read from a property file(QUEUENAME & QUEUEROUTINGKEY) <amqp:outbound-endpoint exchangeName="${QUEUEEXCHANGE}" queueName="#{detail.vendor['#[flowVars.msVendorCode]' + '${QUEUENAME}']}" connector-ref="vendorConnector" routingKey="#{detail.vendor['#[flowVars.msVendorCode]' + '${QUEUEROUTINGKEY}']}" doc:name="AMQP" /> How can i at runtime construct a map...

what is the max retries for until successful scope in mule 3.4.2

mule,mule-studio,mule-component,mule-el
what is the max retries for until successful scope in mule 3.4.2? how many maximum retries we can accoumdate for until successful.is there any limit we have for retries? or else shall I use as many I can?...

Mule xpath fails with Message payload is of type: String

mule,mule-studio,mule-el
I recently started using Mule with Anypoint studio and of course I get error very often. Currently I am accessing a SOAP service with <cxf:jaxws-client> and <http:outbound-endpoint> and from the SOAP response that I get I want to perform a check on a specific body element. Here is my flow:...

Need clarification on “Transport Barrier” in understanding properties

mule,mule-studio,mule-el,mule-component
i have read all "OUTBOUND" properties in Mule floe will be converted to "INBOUND" properties on crossing the "Transport barrier". i could not understand what is this "Transport barrier mean" . Is it calling an external world from an Mule outbound connector ? or calling an flow within the mule...

Connecting MS SQL Server with mule

mule,mule-studio,mule-el,mule-component,mule-module-jpa
I am working in a mule application and I am new in mule application development. In my application, how can I connect to MS Sql server. I have tried Database connector but it is not having Connection configuration for SQL Server. Thanks. ...

Mailing multiple files from inbound file connector in a single mail

mule,mule-studio,mule-el
I can't seem to figure out how I can achieve the following: 1) Mule needs to pick up files from a directory and put it on an ftp (this part is working) 2) Next, it needs to mail the files that were uploaded in a single mail, with the body...

Invoking VM inbound endpoints multiple times in Mule flow ,will it impact performance? Mule ESB

mule,mule-studio,mule-el,mule-component
I need some clarifications on VM Usage. I have large flow in Mule ESB, where I'm using VM Inbounds in some flows. Let say: Totally I have 3 flows with VM( Inbound) as starting point. But I supposed to invoke this flows multiple times with VM ( outbound). For each...

get value from request header in http call -mule

mule,mule-studio,mule-el,mule-component,mule-module-jpa
I am developing a mule application. My start point is http. I need to authenticate my http calls using an authentication token which I am sending as request header. Now, How do I get this request header value in my Mule application?

How to Extract the value of resultSet returned from JDBC response (Via MEL) Mule ESB

mule,mule-studio,mule-el
I have JDBC where I'm calling the stored Procedure, It is returning the response as below, But I'm pretty not sure how to extract the value of result set Please find the response from DB {updateCount1=4,resultSet1=[{XML_F5RYI-11YTR=<Customers><Customer1>John<Customer1><Customer2>Ganesh<Customer2><Customers>}],resultSet2[{SequenceNumber=94}],updateCount2=1, updateCount3=4} I have used the this expression #[message.payload.get(0)], It has return the ResultSet as...

Sending detailed email of exception in Mule ESB using SMTP connector

xml,mule,mule-el
I have a "Catch Exception Strategy" in my flow and I use the SMTP connector to send an email to the admin (me). I am able to send the exception using #[exception] but I would like to send a more detailed message including : The complete URL requests The original...