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
- Open a command prompt/shell.
- From the root of the Mule distribution go to examples/webapp.
- 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.
- 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" |
- 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: