Introduction This tutorial will show you an example on starting mule apps from main class. You can use any IDE for building your mule apps. Here we will see how to build and start mule apps in Eclipse. You can also use Mule or Anypoint Studio to build your mule apps. In our previous tutorial we have seen an example on building mule apps with Gradle in Eclipse. Here we will use the previous tutorial to show example on starting mule apps from main class. So basically if you don’t…
ContinueTag: Mule
Building Mule Apps with Gradle in Eclipse
Building Mule Apps with Gradle in Eclipse, i.e., you are going to create Mule project outside Mule Studio. We will build the Mule project in Eclipse using Gradle script. Gradle is becoming more and more popularity as a build system. It combines the power of scripting with the simplicity of conventions, where customization does not end up in tons of messy configurations. Over the times we have done building Mule apps through Mule Studio using Maven plugin. Here you will create build.gradle script with your own hand to build the…
ContinueSetup Mule, Maven and JDK in Windows
I will show you how to setup Mule, Maven and JDK in Windows environment. Prerequisites Mule Studio 3.x(Anypoint Studio) (Download from https://www.mulesoft.com/platform/studio) Maven 3.2.1 (Download from https://maven.apache.org/download.cgi?Preferred=ftp://mirror.reverse.net/pub/apache/) JDK 1.7 (Download from http://www.oracle.com/technetwork/java/javase/downloads/index.html)
ContinueHandling Default Exceptions in Mule
A catch exception strategy can be defined to customize the way Mule handles messages with errors. A catch exception strategy catches all exceptions thrown within its flow and processes them, thereby overriding Mule’s implicit default exception strategy. Mule’s catch exception strategy behavior is similar to a Java catch block, except that a new exception cannot be thrown or another exception cannot be caught within a catch exception strategy.
ContinueHandling Global Exceptions in Mule
A catch exception strategy can be defined to customize the way Mule handles messages with errors. A catch exception strategy catches all exceptions thrown within its flow and processes them, thereby overriding Mule’s implicit default exception strategy. Mule’s catch exception strategy behavior is similar to a Java catch block, except that a new exception cannot be thrown or another exception cannot be caught within a catch exception strategy.
ContinueHandling Local Exceptions in Mule
A catch exception strategy can be defined to customize the way Mule handles messages with errors. A catch exception strategy catches all exceptions thrown within its flow and processes them, thereby overriding Mule’s implicit default exception strategy. Mule’s catch exception strategy behavior is similar to a Java catch block, except that a new exception cannot be thrown or another exception cannot be caught within a catch exception strategy.
ContinueChoice Flow Control in Mule ESB
The choice flow control dynamically routes messages based on message payload or properties. It adds conditional programming to a flow, similar to an if/then/else code block. A choice flow control uses expressions to evaluate the content of a message, then it routes the message to one of the routing options within its scope. It directs messages to the first routing option in the scope that matches the routing configurations (evaluates to true). If none of expressions evaluate to true, the choice flow control directs the message to the default (else)…
ContinueModify input file name while moving to another directory using Mule ESB
In this tutorial I am going to show you how we can move files from one directory to another directory in Mule ESB. We will use File Connector to take an Excel file as input and this Excel file will be moved to another directory but with modified name. You can see also File transfer from source directory to destination directory in Mule ESB
Continueforeach loop example in Mule ESB
In this tutorial I am going to show you how we can use foreach loop in Mule ESB. We will use File Connector to take an XML file as input then we will iterate each entry of XML file content using foreach loop of JAXB object. You can see also Convert JAXB Object to XML in Mule ESB and Convert XML to JAXB Object in Mule ESB
ContinueConvert JAXB Object to XML in Mule ESB
In this tutorial I am going to show you how we can convert JAXB object into XML data in Mule ESB. We will use File Connector to take an XML file as input then we will map it to an appropriate JAXB object, then finally we will convert the JAXB object back into XML data. You can see also Convert XML to JAXB Object in Mule ESB The JAXB transformers allow objects to be serialized to XML and back again using the JAXB binding framework. Java Architecture for XML Binding (JAXB)…
Continue