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?
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.