Once again. If there are no subscribers to a topic, Messages are removed by the
provider. Start the subscriber before you publish any messages and your code
will work. If you need topic messages to persist over multiple subscriber
invocations you create a durable subscriber. Messages sent to a queue will
persist until they are consumed or the TTL elapses. This is also the  case with
durable subscribers and topics. Messages sent to topics with no subscribers are
deleted immediately.


Reply via email to