Skip navigation

Examples

The easiest way to start using Mule is to walk through an example. Click a link below to learn how to get up and running with that example. Note that there are two versions of each example: an Ant example, which simply requires Ant 1.6.5 or greater to run, and a Maven example, which depends on the downloading of third-party JAR files.

Echo Example
A simple example that demonstrates how to expose a service component over multiple transports.

Hello World Example
Shows how to configure multiple service components to interact on a single request and how to manage event transformations. There is a good article on DevX that describes how to get started with Mule using the Hello World Example.

Stock Quote Example
This example demonstrates how to invoke an ASPX web service from Mule, transform the result using XSLT, and deserialize the result to a StockQuote Java bean. The example demonstrates invoking the service using REST and SOAP.

Error Handler Example
Demonstrates using Spring as the external container to provide the objects managed by Mule and how to publish events to multiple outbound endpoints. The example consists of two components: ExecptionManager and BusinessErrorManager.

Scripting Example
Demonstrates Mule support for JSR-223 scripting.

Loan Broker Example
The Loan Broker example application is based on the example presented in the Enterprise Integration Patterns book. This chapter of the book is available online so you can see a detailed description of the application here.

Mule Examples Webapp
A web application that provides an interface to some of the examples, including LoanBroker, Hello World, and Echo. It also provides examples of accessing Mule using REST-style service calls and is itself an example of how to embed Mule in a web application.

Bookstore Example
Demonstrates how to use CXF with Mule.

<< Previous: Running Mule Next: Basic Usage >>
Adaptavist Theme Builder Powered by Atlassian Confluence