Danny Angus wrote:
On 1/20/07, Michael Weissenbacher <[EMAIL PROTECTED]> wrote:
Is there some spool manager
interface or is it safe to update/delete/move the spool records while
JAMES is running (i use the db spool with MySQL)?
Its safe, quick, easy, and deadly effective. The spooling has to be
thread safe for the case 'where a message is removed by another
thread, otherwise we'd have to using locking which would reduce
performance. Moving the messages using your own SQL is no different
from one James thread treading on the toes of another.
I think this is misleading.
Our MailRepository use Locks, and the correct way to move mails is to
ask the repository to the store and call its methods.
Otherwise you could move messages that are currently locked by some
processor, and maybe not fully loaded yet (as we lazy load the body).
In trunk we added commands to the RemoteManager and the JMX interfaces
to move/delete mails frem/between spools.
That said I often move messages using sql and it works, but this is not
the *safest* way.
Stefano
PS: if you are a java programmer and you want an example on how to
interact with james spools look here:
http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/management/SpoolManagement.java?view=markup
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]