The example shows how to create a runnable Jar file with Mule Embedded.
This new example uses Mule Kernel Dependency from Mule, this library has to be downloaded from:
https://developer.mulesoft.com/download-mule-esb-runtime
After download the version 3.8.0, unpack the file and copy lib directory into this project.
The example uses Mule CE 3.8.0 and I could NOT find Mule Kernel for EE.
In case you find one for Mule EE, you need to:
- Include Mule EE license file in src/main/resources.
- Start the java process with the system property:
-Djava.util.prefs.PreferencesFactory=com.mulesource.licm.pref.MulePreferencesFactory
##Requirements
a) Java 8+
b) Gradle 4.0+
-
Clone the project
-
Copy lib directory in the project as mentioned before
-
Go in the directory
-
Execute
gradle clean build
- Run
gradle run
You should see in you browser: "Hello World from Mule Microservice"
Contact: Rafael Espino (rafael.espino@gmail.com)