With the Message Store Mediator, you can store messages in a given Message Store.
Syntax
<axis2ns1:store xmlns:axis2ns1="http://ws.apache.org/ns/synapse" messageStore="string" sequence="string"></axis2ns1:store>
UI Configuration
- Message Store - Select the message store where messages will be stored. You must add the message store to the ESB before you can select it here.
- On Store Sequence - The Sequence that will be called before the message gets stored. It can be chosen either from Configuration or Governance Registry. Refer to more information about registries in the Working with the Registry.
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>