0

Is it possible to get the artifact (app) name using the mule sdk when developing a custom mule connector?

I can get the artifact name by creating a parameter and having the user pass it in:

@Parameter
private String artifactName;

but can it be retrieved from an injected service?

aled
  • 21,330
  • 3
  • 27
  • 34
William
  • 91
  • 1
  • 10

1 Answers1

0

Artifact name and application name could be different. The more clean approach is to add a configuration to the module/connector for the application name and set it in the application. If the user sets it to the built-in placeholder${app.name} it will contain the actual application name.

aled
  • 21,330
  • 3
  • 27
  • 34