mule-japex-archetype
This is a Maven archetype to run micro benchmarks with Mule.
Which version?
This project currently comes in two versions: the 1.x line and the 2.x branch. The version number corresponds to the Mule version the framework can be used with: while the mule-japex-extensions version 1.x is targeted at Mule 1.4.x, the mule-japex-extensions version 2.x is targeted at Mule 2.0.x.
Usage
Repository setup
Before you can use the mule-japex-archetype your local repository must contain all the required dependencies. Follow the steps outlined here to get your local repository prepared.
Archetype use
mvn org.mule.tools:bobberplus:create -DarchetypeGroupId=org.mule.tools.japex \
-DarchetypeArtifactId=mule-japex-archetype \
-DarchetypeVersion=1.0-SNAPSHOT \
-DgroupId=yourGroupId -DartifactId=yourArtifactId \
-Dversion=yourVersion
You can also set default values for the various variables that will be prompted while creating the project. To do so add more -D switches to the commandline above:
-DProjectName="Mini Benchmark" \
-DProjectDescription="Tests the Test" \
-DDriverPackageName="your.package.name" \
-DDriverPackageName="MyDriverClassName"
Examples
We currently provide a simple example consisting of a simple Mule flow. See VM Roundtrip Example for a description how to build and run it.
Japex startup cycle and Mule tests
Have a look at the explanation of the Japex lifecycle for a good understanding how it works and which effects it might have on your tests.