I had this question in mind for long time and am jotting it down now.
Which will be a best practice or has an edge over others while transforming or processing data in Mule ESB. I am curious to differentiate between the following components.
- Java Script
- Groovy Script
- Other allowed scripts
VS
Java Component or Java Transformer
Usually any ESB should provide various options for the transformations and Mule also provides a lot of ways and methodologies for transformation.
I am curios to know which is better for some of the common situations.
For example check the scenarios for below.
Calling a java component to chunk out a list from an object and make that list as the payload VS using OGNL in set payload component.