Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This sample demonstrates how the message expiration time (time to live) can Time to Live (TTL)  can be set for messages published to WSO2 message broker (WSO2 MB). Go to Configuring Message Expiration for more information on this feature.

Table of Contents
maxLevel3
minLevel3

...

About the sample

This sample demonstrates how the Time to Live(TTL) value can be set to messages that are published to WSO2 Message Broker. It first  first introduces a sample JMS client named QueueSender, which is used to send messages with TTL value set or without a TTL value set for a queue in WSO2 Message Broker. Then it introduces uses a sample JMS client named QueueReceiver to receive the messages, which are not expired at that time and prints the number of received messages on the console.

...