james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Benett <char...@benett1.demon.co.uk>
Subject [Proposal] Unique repository objects
Date Tue, 01 May 2001 15:18:32 GMT
One way to clean up the apparant locking issue with spool repository
would be for AvalonMailStore (should be DefaultMailStore) to guarantee
unique repository objects. And, in practice, repository objects should
already be unique - there's just no guarantee.

This just requires release() to be implemented (inherited from
ComponentSelector - should be implemented already.).

Then, all objects that want a mail repository go MailStore.select(hint)
to get it and MailStore.release(repository) when they are finished. 

As a side effect, this willbring the POP3 repositories closer to the
IMAP repositories which should simplify facading POP3 access to IMAP
inboxes.

Normally, this should go in the proposal dir, but as main tree is
broken, if I can get this working I'll commit straight to main tree
unless I get -1'd.

Charles

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


Mime
View raw message