The Mule Webapp provides a user interface to some of the Mule examples such as the LoanBroker, Hello World and Echo examples. It also provides examples of accessing Mule using REST style service calls and is itself an example of how to embed Mule in a webapp.
Prerequisites
You should have the MULE_HOME environment variable set to the root of your Mule distribution.
Preparation
- Open a shell*.
- From the root of the Mule distribution go to examples/ant/webapp or examples/maven/webapp
- If you are running this example for the first time and want to use Ant (version 1.6.5 or later) to build the web application:
- Make sure you are in the examples/ant/webapp directory
- Run the Ant script - 'ant'
- You should see output indicating that the .war file has been built
- Copy the .war file, found in the build subdirectory, to the deployment directory for your servlet engine
- If you are running this example for the first time and want to use Maven to to build the web application:
- Make sure you are in the examples/maven/webapp directory
- Run Maven - 'mvn'
- You should see output indicating that the .war file has been built
- Copy the .war file, found in the build subdirectory, to the deployment directory for your servlet engine
Webapp Contents
The webapp contains the following -