Questions tagged [mule-sdk]

Mule SDK allow to create connectors and modules for Mule 4. This tag should be used to questions related to the Mule SDK and creating connectors and modules for Mule 4.

The Mule SDK allow to create connectors and modules for Mule 4.

There are currently two SDKs:

  • Java SDK: used to develop conenctors with Java.
  • XML SDK: to develop connectors using existing connectors and Mule XML configurations.

This tag can be used for both.

22 questions
2
votes
1 answer

Why do I get org.apache.maven.plugins:maven-site-plugin:3.6.1:?

I am trying to create a basic mulesoft plugin mvn org.mule.extensions:mule-extensions-archetype-maven-plugin:1.2.0:generate When I try and execute mvn eclipse:clean I get [WARNING] The POM for org.apache.maven.plugins:maven-site-plugin:jar:3.6.1 is…
New Bee
  • 31
  • 1
2
votes
0 answers

Injecting HttpService into a Mule 4 Custom Configuration Properties Provider

I'm working on making a custom properties provider to load the contents of a Spring cloud config server at startup. I need to make a single call at the initialization of the provider to fetch these properties, and would like to use the Mule…
1
vote
2 answers

Is it possible to create in a Mule 4 Module a Scope with access to a connection?

I'm following the examples included in the documentation related to the creation of a Module and its different components. I've been able to create Operations that can use connections, but now I'm trying to do something similar with a Scope…
Berigoner
  • 93
  • 1
  • 7
1
vote
0 answers

Parse JSON array response using Gson in mule custom connector

I am trying to parse the JSON response from webservice in my custom connector for Mule 4 here is my JSON response from webservice { "value": [ { "contentType": "plainText", "id": "listItems0", }, { "contentType":…
Bora M.s.
  • 141
  • 7
1
vote
1 answer

How to Publish Mule Application to Exchange as Connector in Mule 4

I need to publish mule application to exchange as connector in mule 4. Could anyone please let me know the process.
1
vote
1 answer

Unable to install DevKit Plugin

I'm trying to install Devkit plugin in anypoint studio and after following below steps: https://docs.mulesoft.com/connector-devkit/3.9/setting-up-your-dev-environment im getting below error message, Please help Cannot complete the install because…
KashyPR
  • 44
  • 5
1
vote
1 answer

Mule SDK Problem - Unable to fetch keys for the metadata using @MetadataKeyId

I am using Mule SDK for developing a custom connector. I am working on fetching the necessary metadata. The following are the two snippets that i use: WeatherConnectrOperations.java: public class WeatherConnectrOperations { public void…
0
votes
1 answer

Is it possible to get the artifact name from the mule sdk?

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…
William
  • 91
  • 1
  • 10
0
votes
2 answers

How to override the auto generated mule-artifact.json with mule extension

Is it possible to override the auto-generated mule-artifact.json when creating a custom mule extension?
William
  • 91
  • 1
  • 10
0
votes
1 answer

How Mule Distributed Locking for Dynamic locks are managed and released in memory across multiple workers

I am creating locks, but names for locks are dynamic. There can be many messages for a given businessCaseId and therefore, many locks will be created. lock = lockFactory.createLock(vars.businessCaseId) lock.lock() try{ //business…
Débora
  • 5,816
  • 28
  • 99
  • 171
0
votes
0 answers

Mule SDK Plugin leads to java.lang.NoClassDefFoundError: org/json/JSONObject

I created a plugin on my own that uses a JSON library. The project builds, runs and tests in IntelliJ and on the console. When I import my plugin to Anypoint Studio I'm getting this error: ERROR 2021-06-04 06:41:34,587 [[MuleRuntime].uber.01:…
Peter
  • 1,844
  • 2
  • 31
  • 55
0
votes
1 answer

Custom validation in Mule ESB

I am trying to add custom validation against a generated request object for incoming JSON payload using the javax.validation framework and openapi-generator-maven-plugin in Mule ESB. I am following the below mulesoft documentation…
souvikc
  • 991
  • 1
  • 10
  • 25
0
votes
1 answer

How to use non-blocking HTTP requests in Mulesoft 4 Custom Connector

I'm trying to build a Mulesoft custom connector which makes HTTP requests to a third-party system, and I'd like these HTTP requests to be made in a non-blocking manner such that execution can continue without waiting on the HTTP response to be…
Stephen Hartley
  • 945
  • 1
  • 11
  • 17
0
votes
1 answer

How to pass a function as a parameter in a JAVA SDK Operation for mule 4

I am trying to build a custom connector using Mule's Java SDK. Basically what I am trying to do is to add functionality to the current cache scope to let the developers to be able to add a condition upon which the scope should store something in the…
Harshank Bansal
  • 2,798
  • 2
  • 7
  • 22
0
votes
1 answer

Implementing XA transaction for Mule 4 SDK connector

I try to implement XA transaction for Mule 4.3.0 custom connector. In Mule 3.X.X versions and up Mule 4.2.X versions they are supporting the class org.mule.runtime.core.internal.transaction.ExternalXaTransaction In 4.3.0 they are removing the…
1
2