Set up and deploy Mule Standalone Runtime locally
- February 20, 2020
Step 1. Download Mule 4 Standalone Runtime from https://www.mulesoft.com/lp/dl/mule-esb-enterprise.
Step 2. Extract the .zip file to some location.
Step 3. Log in to the Anypoint Platform. Go to the Runtime Manager. Click Servers.
Step 4. Click Add server. A popup window will appear, as shown in the image below.
Step 5. Go to the directory where you extracted your Mule Runtime .zip file. Then go to the bin directory and execute the command you copied from the popup window shown above. You can replace the existing server name with one of your choice.
Remove ./ from the command. Execute the command. The Mule Runtime Agent will be installed after executing the above command.
Once the Mule Runtime Agent is installed, you’ll see that one server with your chosen name has been created in the Runtime Manager and has the status CREATED.
Step 6. Put a JAR file of the application in the apps folder of your local Mule Runtime.
Step 7. Execute the command mule.bat in the bin directory to start the Mule Runtime Server.
Step 8. Once you start your server the application present in the apps folder will deploy automatically.
You can now check the status of your server. It will be in a running state.
If you hit the endpoint of your application through the browser (or any testing tool, like Postman), you’ll get the output.
Stop the Mule Standalone Runtime by clicking Ctrl + c.
If you look at the servers in the Runtime Manager Console, you’ll see the server status as DISCONNECTED.
— By Manish Prabhu