QuestionQ10

MuleSoft application network concepts

In a Mule 4 application to be deployed to customer-hosted Mule runtimes, the Java module’s Invoke Static operation must call a static method in a dependency JAR file.

How can the dependency be made available to the Java module’s classloader?

  • A Configure the dependency as a shared library in the project’s POM file
  • B Add the dependency JAR file to the Java classpath by setting JVM parameters
  • C In the Java Invoke Static module configuration, configure the path and name of the dependency JAR file
  • D Use a Maven command to include the dependency JAR file when packaging the application
Explanation

Mule 4 isolates connector classloaders from application dependencies. Declaring the dependency as a shared library in the Mule Maven plugin configuration of the application’s pom.xml exposes the dependency to the Java module’s connector classloader.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!