This example demonstrates how to use Mule 4's Java method to invoke a custom static method with 2 arguments. The custom class is reused from this post: Define and consume custom Java methods using Dataweave 2.0 in Mule 4.
Tips when working with custom java classes in Mule 4:
- Include your custom namespace in mule-artifact.json
- If you are making references to third party libraries, include them as maven dependencies in pom.xml
This is a simple example using a HTTP Listener to listen for POST requests to http://localhost:8081/list-files2

