This page last changed on Oct 02, 2006 by lajos@mulesource.com.

The example demonstrates how Mule provides JSR-223 Scripting support.
Cannot resolve external resource into attachment.

Running the Application

Prerequisites

Prior to running the application, you must download several jars using the supplied build scripts with either Ant (version 1.6.5 or later) or Maven. This means you must have an internet connection available!

You should also 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/scripting or examples/maven/scripting
  3. If you are running this example for the first time and want to use Ant (version 1.6.5 or later) to set up the project:
    1. Make sure you are in the examples/ant/scripting directory
    2. Run the Ant script - 'ant'
    3. You should see output indicating that the required JARs have been download to the MULE_HOME/lib/user directory
    4. You can now proceed to the "Running" section below
  4. If you are running this example for the first time and want to use Maven to set up the project:
    1. Make sure you are in the examples/maven/scripting directory
    2. Run Maven - 'mvn'
    3. You should see output indicating that the required JARs have been download to the MULE_HOME/lib/user directory
    4. You can now proceed to the "Running" section below

Running

  1. Open a shell*.
  2. From the root of the Mule distribution go to examples/ant/scripting or examples/maven/scripting.
  3. Run 'scripting.sh' or 'scripting.bat'
  4. You'll be prompted to select a test variation:
    1. Binary HTTP
    2. Text file
  5. To stop Mule, type 'CTRL-C' in the Mule console window

*Shell refers to a command shell in unix or linux and command prompt in windows.

Document generated by Confluence on Oct 03, 2006 09:23