Author: Manish Prabhu
Step 1: Download mule 4 standalone runtime from https://www.mulesoft.com/lp/dl/mule-esb-enterprise
Step 2: Extract zip to some location.
Step 3: Login to anypoint platform. Go to the runtime manager. Click on servers.
Step 4: Click on Add server. You will get a popup window as shown in the picture below.
Step 5: Go to the directory where you have extracted your mule-runtime zip. Go to the bin directory and execute the command that you have copied from the above popup window. You can replace server-name with the name that you want to give to a server.
Remove ./ from the command before executing the command. Mule runtime agent will get installed after executing the above command.
Once the mule runtime agent is installed, you will see one server with your given name is created in runtime manager with status CREATED.
Step 6: Put jar file of application in apps folder of local mule runtime.
Step 7: Execute the command mule.bat in bin directory to start mule runtime server.
Step 8: Once you start your server, then the application which is present in the apps folder will get deployed 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 can get the output.
You can stop the mule standalone runtime by pressing Ctrl + c.
If you see the servers in the runtime manager console, you will get the server status as disconnected.