Writing a custom connector

Hi,

Sorry, for sending you down the wrong way.
I tried it myself: You do not need the @Component annotation.
However, make sure that you follow all steps explained here.
Especially, add a file META-INF/services/org.camunda.connect.spi.ConnectorProvider that lists your custom connector. The content of my file looks like this:

io.camunda.forum.CustomConnectorProviderImpl

And the referenced CustomConnectorProviderImpl looks like this:

package io.camunda.forum;

import org.camunda.connect.httpclient.HttpConnector;
import org.camunda.connect.httpclient.impl.HttpConnectorImpl;
import org.camunda.connect.httpclient.impl.HttpConnectorProviderImpl;

public class CustomConnectorProviderImpl extends HttpConnectorProviderImpl {

  @Override
  public String getConnectorId() {
    return "custom-connector";
  }

  @Override
  public HttpConnector createConnectorInstance() {
    return new HttpConnectorImpl();
  }
}

I hope this helps.

1 Like