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. Go to Micro Integrator Project Explorer > Message Stores.

    create-message-store

  4. Hover over Message Stores and click the + icon that appears to open the Message Store Form below.

    add message store

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

    create-message-store

  6. Enter a unique name for the message store.

  7. Specify values for the other required properties.

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

    new message store

  8. 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:

  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.

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:

Follow our tutorials on message stores: