Set Java system properties or Mule environment variables for a Mule Runtime instance
Mule is normally started from a batch or shell script (e.g. mule.bat). In order to pass JVM arguments and properties to Mule, you can use either of the following approaches:
Add new wrapper.java.additional.N entry into the wrapper.conf file (where N=the associated property number)
Use the -M command line argument
Note: this will set the system property for all Mule applications deployed in that Mule runtime. As an alternative, you could simply want to set properties for your particular application if you don't need to change the behavior of the JVM or an external library.
Mule is actually started by the Java Service Wrapper, which uses a wrapper.conf configuration file within the <MULE_HOME>/conf directory. A JVM argument can be added using this format:
wrapper.java.additional.6=-Dorg.mule.xml.validate=false
The startup script for Mule allows you to enter ad-hoc JVM arguments via the -M flag (see MULE-2601). The format is:
mule -config <config.file> -M<argument.1> -M<argument.2>
For instance:
$ mule -config foo.xml -M-Dorg.mule.xml.validate=false -M-Djava.mail.debug=true
-Dorg.mule.xml.validate=false -Djava.mail.debug=true
Another option is to add the arguments in the wrapper.conf file from the Mule Runtime bundled in Studio.
Please note with this option you will add the arguments in all your mule applications used by the runtime. The instructions can be found hereIf you are deploying your application to CloudHub/RTF just add the property as you would with any other application property, don't include any hyphens or command line parameter.
Example:
org.mule.xml.validate=false java.mail.debug=true
MUnit - VM arguments for recorder
The instructions to enforce UTF-8 encoding for Transform Message output can be found here.
See Setting CloudHub Application Properties
001115098

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.