james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trần Tiến Đức (JIRA) <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-2616) Rework events so that they do not include the MailboxSession
Date Fri, 30 Nov 2018 08:54:00 GMT
Trần Tiến Đức created JAMES-2616:
------------------------------------

             Summary: Rework events so that they do not include the MailboxSession
                 Key: JAMES-2616
                 URL: https://issues.apache.org/jira/browse/JAMES-2616
             Project: James Server
          Issue Type: Improvement
          Components: mailbox
            Reporter: Trần Tiến Đức


We do not want to send a `session` related to a single node context, other a message queue.

Modify the Event API and implementation to just be exposing a `User`.

Rework MailboxListeners so that they either:
 - Directly reuse the User where possible
 - Reopen system sessions for that given user if needed.

 

You have to replace getSession() by a new getUser() in Event class. In some listeners, they
requires to retrieve Session, let's use MailboxManager to create mailbox session of the user
from getUser()



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message