Establishing a Connection
This section describes how to connect to Wasabi from your AnyPoint Studio project. You can use wizards or the XML editor in AnyPoint Studio to define connection properties in a global element. Global elements can be reused across other building blocks in your project.
Create a Connection in the Visual Editor
Complete the following steps to visually add the connector to your project and create a connection:
- Create a new Mule Project in Anypoint Studio.
- From the palette, drag the connector into your Mule flow.
- On the Message Flow canvas, double-click the connector icon to open the connector properties in the Properties pane.
- In the General section, click Add and define the Wasabi connection properties. Note that the user name and Password properties always appear here. The user name must be set as it is used as the key for the connection if connection pooling is enabled.
Create a Connection in the XML Editor
Set connection properties in the <cdata-wasabi:config> element in the root of the project's XML.
Note: The user name attribute must always be included here and serves as the key for the connection if connection pooling is enabled.
<cdata-wasabi:config name="CData_Wasabi_Configuration" username="MyName" connectionProperty1="MyProperty" ... doc:name="CData Wasabi: Configuration"/>
Connecting to Wasabi
To connect to Wasabi set AccessKey and SecretKey in the connection string.
Set the following to refine data access:
- Set this Region to the region where your Wasabi data is hosted.
Obtaining the Access Key
- Sign in to the Wasabi console.
- To create or manage the access keys for a user, select the Access Keys tab.
- Click Create New Access Key and use the credentials that will be displayed to authenticate to Wasabi services.
Configure Connector Operations
The connector is an operation-based connector; its operations correspond to SQL statements and expose other functionality such as Schema Discovery. See Using the Connector (Mule 3.8+) for more information on executing SQL to Wasabi in Mule applications.