Add Connectors¶
You can develop configurations with connectors, and deploy the configurations and connectors as composite application archive (CAR) files in WSO2 Integrator: MI.
Instructions¶
See the topics given below.
Import connectors¶
The following methods allow you to import connectors into the project.
Method 1: Add connectors from the Connector Store¶
- Navigate to the Project Overview page.
-
Click on Add artifact.
-
Click + View More under Create an Integration.
-
Select Connections under Other Artifacts to open the Connector Store form.
-
Choose the desired connection. This will ask for the addition of dependencies to the project. Clicking Yes will add the connector to the project.
Method 2: Import connectors¶
- Navigate to the mediation flow to which the connector operation should be added.
- Click the + icon in the relevant location of the mediation flow to open the mediator palette.
- Click on + Add Module and then select the + Import Module option.
Note
The imported connector will be stored in the <PROJECT_HOME>/src/main/wso2mi/resources/connectors folder location.
Method 3: Import connections¶
- Navigate to the Project Overview page.
- Click on Add artifact.
- Click + View More under Create an Integration.
- Select Connections under Other Artifacts to open the Connector Store form.
-
Select the relevant option to either import a connection using an OpenAPI definition or a gRPC (Proto) definition.
Remove connectors¶
- Navigate to a sequence.
- Click the + icon.
- In the mediator palette, scroll down to the chosen connector.
- Click on the delete icon to delete the connector from the project.
Info
In addition to the above methods, you can enable a connector by creating a configuration file in the <MI_HOME>/repository/deployment/server/synapse-configs/default/imports directory with the following configurations. Replace the value of the name property with the name of your connector, and name the configuration file {org.wso2.carbon.connector}<CONNECTOR_NAME>.xml (for example, {org.wso2.carbon.connector}salesforce.xml).
<import xmlns="http://ws.apache.org/ns/synapse"
name="salesforce"
package="org.wso2.carbon.connector"
status="enabled"/>



