Add Connectors¶
You can develop configurations with connectors, and deploy the configurations and connectors as composite application archive (CAR) files in WSO2 Micro Integrator.
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 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.
-
There you can click on the Import Connector button.
-
From the options appearing,
- Select Import Using OpenAPI to import a connector using an OpenAPI definition.
- Select Upload Connector ZIP file to import a connector using a ZIP file.
Method 3: Directly add connectors to the project¶
If you have already downloaded the connector, in the project file structure you can add the connector file into the directory <PROJECT_HOME>/src/main/wso2mi/resources/connectors
.
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"/>