Access Keys:
Skip to content (Access Key - 0)
community header community tab mule tab galaxy tab muleforge tab

Mule Examples Webapp

The Mule examples webapp provides a user interface to some of the Mule ESB 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

Make sure that you have set up your environment as described in Installing Mule before you proceed.

Preparation

  1. Open a command prompt/shell.
  2. From the root of the Mule distribution go to examples/webapp.
  3. If you are running this example for the first time, either run the Ant command ant or the Maven command mvn, depending on which tool you want to use to build the application. You should see output indicating that the .war file has been built.
  4. Copy the .war file from the target subdirectory to the deployment directory for your servlet engine.
    If you get a PermGen space warning while running Maven, try increasing the memory allocation to Maven by setting MAVEN_OPTS="-Xmx256m -XX:MaxPermSize=128m"
  5. Open a browser and go to the mule-examples subdirectory of your application server, such as: http://localhost/mule-examples

Webapp Contents

The webapp contains the following contents:

mule-examples.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
 |- images
Adaptavist Theme Builder (3.3.3-conf210) Powered by Atlassian Confluence 2.10, the Enterprise Wiki.
Free theme builder license