cancel
Showing results for 
Search instead for 
Did you mean: 

What is the maximum lifespan of a message in SAP Enterprise Messaging

r_herrmann
Active Contributor
0 Kudos
444

For how long will messages be kept in queues in SAP Enterprise Messaging if they aren't pulled. Is there a maximum lifespan/retention period?

Accepted Solutions (1)

Accepted Solutions (1)

Tobias_Griebe
Product and Topic Expert
Product and Topic Expert

Hi Raffael,

there is no maximum lifespan/retention period for messages in a queue. They will be stored in the queue until they are either consumed from the queue, or until the whole queue is being deleted.

r_herrmann
Active Contributor
0 Kudos

Hi Tobias,

"[...] or until the whole queue is being deleted." - what events can trigger a deletion of a queue? Does "queue is being deleted" mean that one deletes the queue manually or could a restart/update of the SCP also delete queues? (Or would queues be restored in case of an outage of SCP?)

Tobias_Griebe
Product and Topic Expert
Product and Topic Expert

Hi Raffael,

I was referring to a manual deletion of a queue. Meaning an end-user deletes the queue either via the Enterprise Messaging UI or via the Management API.

In case of a restart of the messaging broker (Enterprise Messaging) all queues will be restored by default. If you want your messages inside the queues to be persistet even beyond a server restart, you need to set the header attribute "durable" of your message object. See the AMQP 1.0 specification for further details: http://www.amqp.org/resources/download

Answers (0)