Create a Message Store¶
Follow the instructions below to create a new Message Store artifact in the Micro Integrator for Visual Studio Code extension (MI for VS Code).
Instructions¶
Create the message store artifact¶
-
Launch Visual Studio Code with the Micro Integrator for VS Code extension (MI for VS Code) installed.
Info
Follow the Install Micro Integrator for VS Code documentation for a complete installation guide.
-
Create an integration project.
-
Go to Micro Integrator Project Explorer > Message Stores.
-
Hover over Message Stores and click the + icon that appears to open the Message Store Form below.
-
Select the type of message store you are creating.
-
Enter a unique name for the message store.
-
Specify values for the other required properties.
See the links given below for descriptions of message store properties for each store type:
-
Once you specify the values for the relevant properties, click Create.
The message store is created in the src/main/wso2mi/artifacts/message-stores
folder under the integration project you created.
Design the integration¶
To add a message store to the integration sequence, use the Store Mediator:
-
Open to the Design View of your mediation sequence.
-
Add Store Message from the Palette under Mediators > Generic to the relevant position in the mediation sequence.
-
Select the name of the message store artifact you previously created from the dropdown.
The message store is now linked to your integration sequence.
Update the properties¶
Open the above-created message store artifact from the MI Project Explorer. You can use the Form view or the Source view to update message store properties.
Learn more about message stores
Follow our examples on message stores:
- Introduction to Message Stores and Processors
- JDBC Message Store
- JMS Message Store
- RabbitMQ Message Store
Follow our tutorials on message stores: