MuleSoft

Mule Standalone Runtime Setup & Registering With Anypoint Platform

Overview: –

  • MuleSoft’s Anypoint Platform offers flexibility in deployment options, allowing you to run Mule applications either in the cloud (CloudHub) or on-premises using Mule Standalone Runtime.
  • In this blog, we will explore the steps to set up Mule Standalone Runtime and deploy your Mule applications on it.
  • This setup is especially useful when you need more control over the server environment or prefer to host your applications locally or in private data centers.

What is Mule Standalone Runtime: –

  • Mule Standalone Runtime is the on-premises version of the Mule Runtime engine.
  • It allows you to deploy and run Mule applications locally or in private infrastructures like data centers or private clouds and gives you more control over the environment, server configuration, and resources.
  • When Should You Use Mule Standalone Runtime?
    • If your application deals with sensitive data and you cannot or do not want to use public cloud infrastructure.
    • When you have complex legacy systems or databases that reside on-premises and need to integrate.
    • Suitable for applications that don’t need to be exposed externally.

Prerequisites: –

  • Anypoint Platform account.
  • JDK 8 or higher installed (since Mule requires Java to run).

Download Mule Standalone Runtime: –

Step 1: Click the link below to download the Mule standalone server.

https://www.mulesoft.com/lp/dl/anypoint-mule-studio

Step 2: Select the product as Mule Standalone from the dropdown. Provide the below details and click on download.

Step 3: Check your email inbox for downloading Mule Standalone and then click on “Go to the download page”

  • Step 1: Click on Download .zip to download the Mule Standalone.
  • Step 2: After downloading, extract the zip file and then open the extracted folder. It will look like this
  • Step 3: Open the bin and run mule.bat file then you can check that the server will start.

You can deploy an application by adding a Mule jar file in the apps folder then it’ll automatically deploy the application if the server is up and running.

Add Servers to Runtime Manager: –

  • To add a Mule server to the Runtime Manager console so that you can manage it, you must first register it with the Runtime Manager agent.
  • Step 4: Log in to the Anypoint Platform and Select Runtime Manager >  Servers > Add Server
  • Step 5: Provide server name and command
  • Step 6: Remove “./” and add .bat after amc_server

Eg: – amc_setup.bat -H c9952033-dba4-47db-9bed-78e008dad6c4—1172101 custom-server

  • Step 7: Open the command prompt and change the directory to Mule Standalone bin directory($MULE_HOME/bin) and paste the command then click enter.
  • You can check that Mule Agent has been configured successfully.
  • You can check that the server is created in the Servers section in Anypoint Studio Runtime Manager
  • Step 8: Restart the Mule Standalone server and then you can check that the Status will change to “Running” in Runtime manage

We have successfully added a server to Runtime Manager. Let’s deploy an application from the Runtime Manager. I already had a Mule jar file here.

  • Step 9: Navigate to the Applications section in Runtime Manager and click on Deploy application
  • Step 10: Provide details like the Application Name, Select the hybrid server for the deployment target, and upload the application file by clicking on the choose file.

Note: – Make sure the standalone server is up and running.

  • Step 11: Click on Deploy application

Wait until the application is deployed. Once the application is deployed, you can check the server prompt. If there are no errors or failures during the deployments, it will show that the application is deployed.

  • After deployment from Anypoint Runtime Manager you can verify the application is deployed on your local machine in ${MULE_HOME}\apps.

Author

Teja Dannina

Leave a comment

Your email address will not be published. Required fields are marked *