Skip to content

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

  1. 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.

  2. Create an integration project.

  3. To add a new Message Store, navigate to Micro Integrator Project Explorer.

  4. Click on the + icon to open the Add Artifact pane.

    add artifact

  5. Click + View More under Create an Integration.

  6. Click Message Store under Other Artifacts to open the Message Store Form.

  7. Select the type of message store you are creating.

    create-message-store

  8. Enter a unique name for the message store.

  9. Specify values for the other required properties.

    See the links given below for descriptions of message store properties for each store type:

  10. Once you specify the values for the relevant properties, click Create.

The message store is created in the <PROJECT_NAME>/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:

  1. Open to the Design View of your mediation sequence.

  2. Add Store Message from the Palette under Mediators > Generic to the relevant position in the mediation sequence.

    Store message

  3. Select the name of the message store artifact you previously created from the dropdown.

    Store message details

The message store is now linked to your integration sequence.

store mediator

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.

Tutorials

Follow our tutorials on message stores:

Examples

Follow our examples on message stores: