Mule Examples
Mule provides a suite of example materials to help you learn more about building applications in Mule Studio and Mule Standalone.
Examples and Templates
Mule example applications offer insight into how you can use Mule to manage system connection and integration situations. Based on real-life business use cases, the examples demonstrate Mule's features and functionality, and suggest how you can take advantage of them.
- In Mule Studio, Mule's graphical interface, these example apps exist in the form of templates which you can use to build a Mule application without having to start from scratch.
- In Mule Standalone, (Mule without Studio) these example apps exist as files in the examples folder of the product distribution. You can access these example applications from your computer's console, using them as foundations upon which to build your own apps.
| Complexity | Example App | Key Concepts | Included in Runtime | |
|---|---|---|---|---|
| Community | Enterprise | |||
Low | Hello World | ✓ | ✓ | |
| Low | HTTP Request-Response with Logger | ✓ | ✓ | |
| Medium | Connect with Salesforce | ✓ | ||
| Medium | DataMapper with FlowRefLookup |
| ✓ | |
| Medium | Legacy Modernization | ✓ | ||
| Medium | Foreach Processing and Choice Routing |
| ✓ | ✓ |
| Medium | Websphere MQ | ✓ | ||
| High | XML-only SOAP Web Service |
Dynamically applies routing criteria to a message at runtime. | ✓ | |
| High | SOAP Web Service Security | ✓ | ||
| High | Service Orchestration and Choice Routing |
Dynamically applies routing criteria to a message at runtime.
| ✓ | |
Create and Run Example Applications
Create
- If you haven't already done so, visit www.mulesoft.org and download Mule ESB with Mule Studio for free. Follow the instructions on the website to launch Mule Studio and select a workspace.
- Click the
Filemenu, then selectNew>Mule Project. - Use the table below to enter values in the fields.

Field Value Name a name for your new project Description a brief description of the application you intend to build Server Runtime Mule Server 3.4.0 EE How do I get Mule 3.4 Community runtime?
- Click the box next to Create project based on an existing template.
- Click a line item to select the template you wish to use to build your project.
- Click Finish. Studio creates and opens the new project, complete with pre-built and pre-configured flows.
Run
In the Package Explorer pane in Studio, right-click the project name, then select
Run As > Mule Application. Studio runs the application and Mule is up and kicking!- To stop the application from running, click the red Terminate button in Studio's Console.

Create
- If you haven't already done so, visit www.mulesoft.org and download Mule ESB standalone runtime (without Mule Studio) for free. (Alternatively, download a trial version of Mule ESB Enterprise (with Management Tools).
- Navigate to the folder on your local drive that contains your copy of Mule ESB Standalone runtime.
- Locate the
Examplesfolder, then the folder for the example you wish to run. - Copy the pre-built application archive (the
.zipfile) for the example. Paste the copy of the
.zipfile in the Mule applications folder,$MULE_HOME/apps.
For example, to run the Hello World example, copymule-example-hello-3.4.0.zipthen move the copy to the$MULE_HOME/examplesfolder.

Alternatively, you can build the example in a build tool such as Ant or Maven.
- Run
antormvnin your Ant or Maven build tool, respectively. - The build tool compiles the example classes, produces an application zip file and copies it to your
$MULE_HOME/appsfolder.
- Run
Start Mule.
- After it starts, Mule polls the
appsandexamplesfolders every 5 seconds; it picks up the application you copied to theexamplesfolder, then deploys it automatically. In the first command line, Mule notifies you that it has deployed the example application. - To stop the application from running, hit CTRL-C.
Go Further
- Walk through the Studio Core Concepts to learn the basics of working with Mule Studio.
- Study the Mule Studio Tutorials for step-by-step instructions on how to build an application.