You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "René Cordier (Jira)" <se...@james.apache.org> on 2020/03/06 03:14:00 UTC

[jira] [Commented] (JAMES-3081) Make messages persistent in rabbitmq mailqueue

    [ https://issues.apache.org/jira/browse/JAMES-3081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17052715#comment-17052715 ] 

René Cordier commented on JAMES-3081:
-------------------------------------

[https://github.com/linagora/james-project/pull/3164] contributed to this

> Make messages persistent in rabbitmq mailqueue
> ----------------------------------------------
>
>                 Key: JAMES-3081
>                 URL: https://issues.apache.org/jira/browse/JAMES-3081
>             Project: James Server
>          Issue Type: Improvement
>            Reporter: Rémi Kowalski
>            Priority: Major
>
> Regarding the persistence of messages in rabbitmq : To achieve this there are two steps :
> the queue must be declared as durable (the declaration of the queue is persisted rabbitmq is restarted)
>  when sending a message, it must have a property setting its delivery_mode to persistent. (the messages with this property are persisted in case of a restart of rabbitmq)
> At the time being the rabbitmq mailqueue in james :
> the queue is declared durable => Good
>  the delivery_mode property is not set => Not good
>  the exchange is  durable =>  Good
> What should be done is :
> set the `delivery_mode` property to '2' ( see [https://www.rabbitmq.com/releases/rabbitmq-java-client/v2.4.1/rabbitmq-java-client-javadoc-2.4.1/index.html?com/rabbitmq/client/MessageProperties.html] )
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org