Translate

New Live Courses

🚀 *Gen AI Engineer Telugu (Production Focused)*
🗓️ *Date:* 30th Sept 2026, 07:00AM IST
📝 *Register Now!:*
https://www.vlrt.in/gr
👥 *Join WA Community:*
https://www.vlrt.in/gw
💡*Course Content:*
https://www.vlrt.in/ai
▶️ *Demo Videos:*
https://www.vlrt.in/gv

🚀 *Service now Admin/ Development (ITSM)FREE Demo in Telugu*
🗓️ *Date:* 30th Sept 2026, 08:00AM IST
📝 *Register Now!:*
https://www.vlrt.in/7r
👥 *Join WA Community:*
https://www.vlrt.in/7w
💡*Course Content:*
https://www.vlrt.in/7c
▶️ *Demo Videos:*
https://www.vlrt.in/7v

🚀 *Vulnerability Management Training Demo*
🗓️ *Date:* 30th Sept 2026, 09:00 AM IST
📝*Register Now!:*
https://www.vlrt.in/vr
👥 *Join Community:*
https://www.vlrt.in/cw
💡 *Course Content:*
https://www.vlrt.in/vc
▶️ *Demo Videos:*
https://www.vlrt.in/Vm

Thursday, 2 November 2023

Use of map function

 

Use of map function?

The map function is a powerful function in MuleSoft that can be used to transform data in a variety of ways. It is a higher-order function, which means that it takes a function as an argument and returns a new function as output.

https://youtu.be/Qg4cJF2x_o8

The map function is typically used to iterate over an array or a collection and apply a transformation to each element. The transformation can be anything from converting the element to a different type to performing a complex calculation on the element.

For example, the following code snippet shows how to use the map function to convert all of the elements in an array to uppercase:

 

import org.mule.runtime.api.util.ObjectUtils;

public class MapExample {

    public static void main(String[] args) {

        // Create an array of strings.
        String[] strings = new String[] { "one", "two", "three" };

        // Convert all of the elements in the array to uppercase.
        String[] upperCaseStrings = ObjectUtils.map(strings, (value) -> value.toUpperCase());

        // Print the upperCaseStrings array.
        System.out.println(upperCaseStrings);
    }
}


Output:

 

[ONE, TWO, THREE]


The map function can also be used to filter data. For example, the following code snippet shows how to use the map function to filter out all of the even numbers from an array:

 

import org.mule.runtime.api.util.ObjectUtils;

public class MapExample {

    public static void main(String[] args) {

        // Create an array of numbers.
        Integer[] numbers = new Integer[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

        // Filter out all of the even numbers from the array.
        Integer[] oddNumbers = ObjectUtils.map(numbers, (value) -> value % 2 != 0);

        // Print the oddNumbers array.
        System.out.println(oddNumbers);
    }
}


Output:

 

[1, 3, 5, 7, 9]


The map function is a versatile and powerful function that can be used to transform data in a variety of ways. It is a valuable tool for Mule developers.

 

What is the memory of logs a mule application can get or allowed by default in cloudhub?

 

What is the memory of logs a mule applicationcan get or allowed by default in cloudhub?

By default, Mule applications deployed to CloudHub are allowed to store up to 100 MB of log data per worker, or up to 30 days, whichever limit is reached first.

https://youtu.be/DnWsh8SWBlY

This means that if your Mule application generates a lot of logs, it is important to monitor the log storage usage and take action to prevent the log storage limit from being reached. This could involve increasing the log storage limit, rotating the logs, or archiving the logs to an external storage system.

To increase the log storage limit for your Mule application, you can contact MuleSoft support.

To rotate the logs for your Mule application, you can use the Mule Runtime log rotation feature. Log rotation allows you to specify how often the log files should be rolled over and how many old log files should be kept.

To archive the logs for your Mule application, you can use the Anypoint Monitoring Log feature. Anypoint Monitoring Log allows you to store an unlimited amount of log data in the cloud.

I hope this helps!

 

How to mask the properties in runtime manager

 

How to mask the properties in runtime manager ?

To mask the properties in Runtime Manager, you can use the Secure Properties feature. Secure Properties allows you to encrypt and decrypt sensitive properties, such as passwords and database credentials.

https://youtu.be/ia_tMstYSfM

To mask a property using Secure Properties, follow these steps:

1.    In the Runtime Manager console, go to the Applications page.

2.    Click the name of the application that contains the property you want to mask.

3.    In the Settings tab, click Properties.

4.    Under Secure Properties, click Add.

5.    Enter the name of the property you want to mask.

6.    Enter the value of the property you want to mask.

7.    Click Save.

The property will now be masked in the Runtime Manager console. To view the value of the property, you will need to decrypt it.

To decrypt a property, follow these steps:

1.    In the Runtime Manager console, go to the Applications page.

2.    Click the name of the application that contains the property you want to decrypt.

3.    In the Settings tab, click Properties.

4.    Under Secure Properties, click the name of the property you want to decrypt.

5.    Click Decrypt.

6.    The value of the property will be displayed in the Value field.

You can also use the Mule Runtime API to mask and decrypt properties. For more information, please see the Mule Runtime API documentation.

Here is an example of how to mask a property using the Mule Runtime API:

 

import org.mule.runtime.api.util.EncryptionUtils;

public class MaskPropertyExample {

    public static void main(String[] args) {

        String propertyName = "password";
        String propertyValue = "mypassword";

        // Encrypt the property value.
        String encryptedPropertyValue = EncryptionUtils.encrypt(propertyValue);

        // Mask the property value.
        String maskedPropertyValue = EncryptionUtils.mask(propertyValue);

        // Print the encrypted and masked property values.
        System.out.println("Encrypted property value: " + encryptedPropertyValue);
        System.out.println("Masked property value: " + maskedPropertyValue);
    }
}


This example will print the following output:

 

Encrypted property value: c0364b84689305826e7f0803a0f13f02
Masked property value: ******


I hope this helps!

 

Wednesday, 1 November 2023

What is Latest version of Mule runtime

 

What is Latest version of Mule runtime

The latest version of Mule Runtime is 4.7.0, which was released on September 20, 2023.

Mule Runtime 4.7.0 includes a number of new features and enhancements, including:

https://youtu.be/AwoEChozP70

·         Improved developer experience: Mule Runtime 4.7.0 includes a number of improvements to the developer experience, such as a new code editor with improved syntax highlighting and code completion, and a new debugging experience with support for breakpoints and step-by-step debugging.

·         Enhanced performance and scalability: Mule Runtime 4.7.0 includes a number of performance and scalability improvements, such as a new non-blocking flow processing strategy and support for larger message sizes.

·         Enhanced security: Mule Runtime 4.7.0 includes a number of security enhancements, such as support for OAuth 2.1 and SAML 2.0, and the ability to encrypt messages at rest.

·         New connectors and features: Mule Runtime 4.7.0 includes a number of new connectors and features, such as support for Kafka Streams, Amazon S3, and Google Cloud Platform.

Mule Runtime is a powerful and versatile platform for developing and deploying Mule applications. It offers a number of benefits, including:

·         Improved performance and scalability: Mule Runtime can handle a high volume of traffic and process messages quickly.

·         Enhanced security: Mule Runtime helps to protect Mule applications from unauthorized access and ensures that data is transmitted securely.

·         Wide range of connectors: Mule Runtime provides a wide range of connectors that allow Mule applications to interact with a variety of systems and services.

·         Ease of use: Mule Runtime is easy to use and provides a number of features that make it easy to develop and deploy Mule applications.

Mule Runtime is used by a wide range of organizations, including Fortune 500 companies and government agencies, to develop and deploy mission-critical applications.

 

What is the role of src main resources folder in mulesoft

 

What is the role of src/main/resources folder inmulesoft 

The src/main/resources folder in MuleSoft is a special folder where you can store resources that your Mule application needs to run. These resources can include configuration files, message templates, and other files that are needed by the Mule components in your application.

https://youtu.be/wBG306GHyKo

When you deploy your Mule application, the contents of the src/main/resources folder are copied to the server where your application will be running. This means that the resources in the src/main/resources folder will be available to your application at runtime.

Here are some of the benefits of using the src/main/resources folder:

·         Resource isolation: The src/main/resources folder isolates your Mule application's resources from the resources of other Mule applications. This means that you can change the resources in the src/main/resources folder without affecting other Mule applications.

·         Resource portability: The src/main/resources folder makes it easy to port your Mule application to different environments. This is because the contents of the src/main/resources folder are copied to the server when you deploy your application.

·         Resource management: The src/main/resources folder makes it easier to manage the resources that your Mule application needs to run. This is because all of the resources for your application are stored in one place.

Here are some examples of resources that you can store in the src/main/resources folder:

·         Configuration files: Configuration files are used to configure the Mule components in your application. MuleSoft supports a variety of configuration file formats, including XML, JSON, and properties files.

·         Message templates: Message templates are used to generate XML messages, JSON messages, and other types of messages. MuleSoft provides a number of pre-built message templates, and you can also create your own message templates.

·         Data files: Data files can contain any type of data, such as XML data, JSON data, or CSV data. MuleSoft provides a number of connectors that can be used to read and write data to and from data files.

·         JAR files: JAR files contain libraries that can be used by Mule components. For example, you can store JAR files for third-party libraries in the src/main/resources folder.

Overall, the src/main/resources folder is a powerful tool that can be used to improve the organization, portability, and management of your Mule applications.