Adding Server in Runtime Manager

DZone 's Guide to

Adding Server in Runtime Manager

One advantage of having On-Prem or Hybrid implementation over CloudHub is that multiple applications can be connected using Mule Domain Project.

· Integration Zone ·
Free Resource

On-Prem Mule Runtime instances/servers can be registered with the Anypoint Runtime Manager (ARM) and managed from there. Servers use Runtime agents to communicate with ARM. This approach of having self-provisioned Mule Runtime Servers connected to Anypoint Platform using Anypoint Runtime Manager Agent is called Hybrid implementation.

One advantage of having On-Prem or Hybrid implementation over Cloudhub is that multiple applications can be connected using Mule Domain Project allowing them to share resources and connector versions which is not possible on Cloudhub.

Registering a Mule Runtime Instance With ARM

  • Download Mule Runtime from here. Unzip it to the desired location.
  • Login to Anypoint platform and go to Runtime Manager ->  Servers -> Add Server

  • Go to the MULE_DIRECTORY/bin, open cmd, execute the above command. Provide a unique server name. anypoint

The agent is configured successfully. The server will be listed in ARM under Server with Created Status add server

  • In terminal/CMD, execute mule.bat/mule or just double click mule batch file to start the server. Server status will change to Running in ARM

To deploy an App to the registered server, navigate to Application ->Deploy Application

deploy application

Provide a name, file, and other required information. The deployment target should be the running server. 

Once the app is deployed successfully, it will be listed in the Applications panel

Also, in terminal/CMD, the logs will be generated and in MULE_DRECTORY/apps, a folder with deployed application name will be present along with anchor file. Anchor file is used to safely remove the app from the server.

Deploying Mule Domain Project

Domain projects can't be deployed from the Anypoint platform, so have to do it from CMD or SSH into the machine where MRT is hosted. Export the domain as JAR (if Mule 4) or zip (if using Mule 3) from Anypoint Studio or do mvn from the project directory (if using Mule 4). Copy the archive and paste it inside MULE_DIRECTORY/domains.

The server will pick up the artifact and deploy the domain. 

Note: Domains are not listed under Applications panel in Runtime Manager


I hope it was helpful. Thanks for reading!

anypoint runtime, cloudhub, domain, hybrid application, integration, mule 4, server deployments, tutorial

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}