Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The deploy operation deploys a Mule Application. It should be used in deploy workflows.

Properties Management

It is always recommended to externalize any configuration parameters (usernames, passwords, URLs etc.). Instead of hard coding these values inside application code, we recommend creating a properties file for your mule application. Please follow these steps to achieve property replacement in FlexDeploy.


1. Create a properties file in your Mule application (eg: orderapi.properties)
2. Place values for all the properties for Anypoint Studio local testing. 
3. Use these property keys in your Mule Application instead of hard coding (eg: ${DB_USERNAME})
4. In FlexDeploy create these properties in your Workflow with the MULE_ prefix (eg: MULE_DB_USERNAME)
5. Provide values to these properties on the Target page.
6. Specify the Property file name in the Project Properties page (Property File Name to Create)
7. FlexDeploy replaces/creates the property file with the values for the environment it is deploying to.

...

Property Name

Property Code

Required for which Mule Type

Description

Mule Application Name

FDMULE_APP_NAME

All

Name of the Mule Application to stop

Target Server Type

FDMULE_TARGET_TYPE

Anypoint Runtime Manager

Mule Target Server Type

(Server, Cluster, ServerGroup)

If necessary, this property can be overridden at the property/Target level.

Target Name

FDMULE_TARGET_NAME

Anypoint Runtime Manager

Name for the Target Server, Cluster or Group

If necessary, this property can be overridden at the project/Target level.

Static IP Address

FDMULE_STATIC_IPADDRESS

None. Used for CloudHub, but optional

Static IP Address for the Application

If necessary, this property can be overridden at the project/Target level.

Number of Workers

FDMULE_WORKERS_COUNT

None. Used for CloudHub, but optional.

Workers Count

Worker Size Type

FDMULE_WORKER_TYPE

None. Used for CloudHub, but optional.

Type of the Worker Size

(Micro,Small,Medium,Large,xLarge,xxLarge)

Defaults to Small

Persistent Queues

FDMULE_PERSISTENT_QUEUES

None. Used for CloudHub, but optional.

Enable Persistent Queues

Defaults to false

Property File Name to Create

FDMULE_PROPERTY_FILE

None. Used for CloudHub, but optional.

Name of the property file to create with Mule Properties

Auto Start

FDMULE_AUTO_START

None. Used for CloudHub, but optional.

Defaults to true

Enable Monitoring

FDMULE_MONITORING_ENABLED

None. Used for CloudHub, but optional.

Defaults to true

...