Author: Kishori Patil

Content: 

Set up Mule 4 Standalone Runtime, Deploy an Application in Mule Standalone Runtime and then connect it to Anypoint Platform Runtime Manager to deploy application on standalone server using Runtime Manager.

Set up Mule 4 Standalone Runtime: 

Steps:

  1. Download the Mule Standalone runtime from this LINK.
  2. After downloading the runtime, you need to unzip that file.
  1. To start the standalone runtime, navigate to the {mule-enterprise-standalone-version}/bin folder, and in the command prompt, run the command “mule.”

Deploy an Application in Mule Standalone Runtime:

  1. First, you need to export the project from Anypoint Studio as a Mule application deployable archive and create a jar.
  2. Then copy this jar file to the {mule-enterprise-standalone-version}/apps folder.
  1. Now Start the runtime by navigating to the bin folder and running command “mule” in CMD.
  1. As you can see, your Mule Standalone Runtime is running and application is deployed with Mule Standalone runtime, and you can use and test that application.

Connect Mule Standalone Runtime to Anypoint Platform Runtime Manager :

Steps:

  1. Go to Runtime Manager > Servers
  2. Click on Add Server, write any name for your server and Click on the Copy command.
  1. Navigate to the {mule-enterprise-standalone-version}/bin folder and in command prompt run the command copied from runtime manager.
  1. This Command will install the Mule agent, create the $MULE_HOME/conf/mule-agent.yml with the configuration options you specified, and establish the communication between Anypoint Platform Control Plane on-prem Mule 4 runtime.
  2. Now you can see an on-prem server is added in the runtime manager, but it’s not running.
  1. To start the server, navigate to the {mule-enterprise-standalone-version}/bin folder, and in the command prompt, run the command mule.
  1. Now if you goto Runtime Manager>Servers, status of on-prem server is running.

 Deploy application on standalone server using Runtime Manager:

  1. If you go to Runtime Manager and click on Deploy Application, one more option that is your on-prem server is available in the Deployment target.
  1. Select that server as the deployment target, add the jar of your application, and the application should be deployed successfully.
  1. If you go to {mule-enterprise-standalone-version}/apps folder, you can see the new folder is created with the application’s name, which is deployed on an on-prem server using runtime manager and also an anchor file for that application.
  2. To stop the standalone runtime, press ctrl+c.

Leave a Comment