Access Keys:
Skip to content (Access Key - 0)

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  

  1. Open a shell*.
  2. From the root of the Mule distribution go to examples/ant/webapp or examples/maven/webapp
  3. 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:
    1. Make sure you are in the examples/ant/webapp directory
    2. Run the Ant script - 'ant'
    3. You should see output indicating that the .war file has been built
    4. Copy the .war file, found in the build subdirectory, to the deployment directory for your servlet engine
  4. If you are running this example for the first time and want to use Maven to to build the web application:
    1. Make sure you are in the examples/maven/webapp directory
    2. Run Maven - 'mvn'
    3. You should see output indicating that the .war file has been built
    4. Copy the .war file, found in the build subdirectory, to the deployment directory for your servlet engine

Webapp Contents

The webapp contains the following -

mule.war
 |- html and jsps
 |- WEB-INF
    |- mule-config.xml - The Mule server shared configuration
    |- mule-echo-config.xml - Configuration for the echo example component
    |- mule-hello-config.xml - Configuration for the hello example
    |- mule-loanbroker-config.xml - Configuration for the loanbroker example
    |- mule-rest-config.xml - Configuration for the REST example
    |- web.xml - Webapp configuration
    |- lib
    |   |- jars required by the Mule server
    |- classes
        |- compiled classes for the example applications
Adaptavist Theme Builder (3.3.2-conf2.10) Powered by Atlassian Confluence 2.10, the Enterprise Wiki.
Free theme builder license