Note that the TTL that Talha mentions applies only if there are subscribers. If there are no subscribers, the doc is discarded regardless of the TTL value.
If there are subscribers, the doc is placed into each subscriber queue. The TTL is evaluated when the subscriber(s) try to retrieve the “next” document. If the TTL has been exceeded, the doc is discarded and the next in the queue, if any, will be evaluated. Subscribers will never see docs whose TTL has been exceeded. Nor will they get an error.
Keep in mind too, that if a doc is placed on a queue and the subscriber never connects and retrieves documents, that doc will remain on queue forever. There is no thread/process that sweeps expired docs.
As always, someone please correct me if I’ve described something incorrectly.
#webMethods#broker#Integration-Server-and-ESB#Universal-Messaging-Broker