mule

Profiling Mule Container and Application using JProfiler

一笑奈何 提交于 2019-12-19 10:49:10
问题 I am trying to profile Mule ESB apps deployed on a mule container(CE v3.4) using Jprofiler but have been unsuccessful this far. My Mule server is running remotely on a linux 64 bit server and the jprofiler is running on my local windows machine. I am trying to remotely connect the jprofiler running on my local windows machine to the Mule server running remotely on a linux server, but till now I have failed to connect the local running jprofiler to the remotely running Mule server. Has

Mule ESB - How to create a HTTP request with POST method (sending parameters along)

依然范特西╮ 提交于 2019-12-19 10:41:53
问题 Short: I want to post a couple of parameters (like user=admin, key=12345678) using the POST method to a PHP page (like localhost/post-debug.php). The script would read the $_POST values and do whatever. My questions are: 1. How can I get the example below to work? 2. How can I create the Map Payload with POST parameters from a JSON encoded payload and send it to the PHP script? Below is an isolated case I am trying to get running (the parameters are "read" from the HTTP endpoint). I am

How do I modify Mule payload variables?

北慕城南 提交于 2019-12-19 04:14:31
问题 Using Mule 3.3, I've got a Payload (which starts out as a JSON and I'm converting it to an Object using java.util.HashMap). I can access the variables just fine from a JDBC query using: #[message.payload.AddJob.variable1] How do I go about adding a new variable (say variable2), or modifying the value of an existing variable? I've tried: <message-properties-transformer doc:name="Message Properties"> <add-message-property key="message.payload.AddJob.variable2" value=""hello""/> </message

Mule Caching Strategy using Redis

我与影子孤独终老i 提交于 2019-12-19 03:24:09
问题 I'm looking for a way to have a shared cache across two servers and I am investigating using Redis as an object-store-caching-strategy but I am encountering a problem when reading stored values. It successfully stores a value when the cache hit is a miss value but throws an error when retrieving the value. The required object/property "muleContext" is null At a guess it seems like the object-store-caching-strategy might need an object store that implements the MuleContextAware interface. Does

Starting a mule flow programmatically using groovy

守給你的承諾、 提交于 2019-12-18 07:11:40
问题 I need to control the execution of a flow manually through a HTTP call. I have been told I can disable the flow from executing during startup using the initialState="stopped" attribute on the flow. (How to stop a mule flow from running after startup) I need to know how to start the flow back using a groovy script. Using mule 3.2.2. 回答1: This should do it: <scripting:component> <scripting:script engine="groovy"> muleContext.registry.lookupFlowConstruct('targetFlow').start() </scripting:script>

How to tell using XPath if an element is present and non empty?

感情迁移 提交于 2019-12-18 03:04:50
问题 I have an input XML something on this line: <Holding id="12"> <Policy> <HoldingForm tc="1">Individual</HoldingForm> <PolNumber>848433</PolNumber> <LineOfBusiness tc="1">Life</LineOfBusiness> <CarrierCode>67644</CarrierCode> </Policy> </Holding> My manipulation on this XML depends on if <PolNumber> (its an optional element in schema) has a value or not. I'm using Mule 3.3 xpath evaluator to do this and my XPath expression looks this: <expression-filter expression="#[xpath('//acord:Holding

Creating a Mule project in Eclipse

有些话、适合烂在心里 提交于 2019-12-17 19:53:55
问题 I have started working with Mule. I am working with Mule Studio. This looks good. But when I want to create a Mule project in Eclipse I am struck. Please suggest me how I can create a Mule project in Eclipse. 回答1: Option 1: With Mule IDE Plugin for Eclipse. You can use the Mule IDE plugin from eclipse. This helps in creating the mule project in eclipse. To add plugins please start eclipse and navigate to help->install new software -> Add site and select the artifacts presented Add muleide

Mule application into a deployable WAR

不想你离开。 提交于 2019-12-17 19:53:07
问题 How the Mule application can be directly convert into a war file, to deploy in Jboss application server, i tried and failed with creating the war file manually as mentioned here and gone through this too, but still didn't get a clear view on this part.Provide a assistance with example. Note: there is no Mule-config.xml file in my sample mule application program 回答1: In the pom.xml , ensure you have <packaging>war</packaging> Create src/main/webapp/WEB-INF/web.xml using the template below,

Apache Camel and other ESB products

。_饼干妹妹 提交于 2019-12-17 17:24:53
问题 Hey, If we have Apache Camel why to use other solutions like Apache ServiceMix and Mule? Is there something Apache Camel can't do comparing to these products? When to use Mule/ServiceMix and when to use Camel? 回答1: Apache Camel is a library that implements enterprise integration patterns (EIP). While it can use Spring as its IOC framework, it is not even dependent upon Spring, so it is completely platform independent. It is "just" a library. So you can run it any JVM environment, e.g. simple

How to read CSV file and insert data into PostgreSQL using Mule ESB, Mule Studio

拥有回忆 提交于 2019-12-17 16:07:50
问题 I am very new to Mule Studio. I am facing a problem. I have a requirement where I need to insert data from a CSV file to PostgreSQL Database using Mule Studio. I am using Mule Studio CE (version: 1.3.1). I check ed in the Google and find that we can use Data-mapper for doing so. But it works only for EE .So I cannot use it. Also I am checking in the net and found an article Using Mule Studio to read Data from PostgreSQL(Inbound) and write it to File (Outbound) - Step by Step approach. That