This documentation is for WSO2 Enterprise Service Bus version 4.9.0 . View documentation for the latest release.

All docs This doc
Skip to end of metadata
Go to start of metadata

The Store mediator enqueues messages passing through its mediation sequence in a given message store. It can serve as a dead letter channel if it is included in a fault sequence and if its message store is connected to a message processor that forwards all the messages in the store to an endpoint.


Syntax

The Store mediator is a content aware mediator.

<axis2ns1:store xmlns:axis2ns1="http://ws.apache.org/ns/synapse" messageStore="string" sequence="string"></axis2ns1:store>

UI Configuration

The parameters available to configure the Store mediator is as follows.

Parameter NameDescription
Message StoreSelect the message store where messages will be stored. You should add the message store to the ESB before you can select it here.
On Store SequenceThe sequence that will be called before the message gets stored. This sequence  should be pre-defined in the registry before it can be entered here. Click either Configuration Registry or Governance Registry to select the required sequence from the resource tree.

Example

A proxy service can be configured with the Store mediator as follows to save messages in a message store named JMSMS.

<proxy name="SimpleProxy" transports="http https" startonload="true" trace="disable">
   <target>
      <insequence>
         <property name="FORCE_SC_ACCEPTED" value="true" scope="axis2" type="STRING"></property>
         <property name="OUT_ONLY" value="true" scope="default" type="STRING"></property>
         <store messagestore="JMSMS"></store>
      </insequence>
   </target>
</proxy>

 

 

  • No labels