james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel J. Bergman" <n...@devtech.com>
Subject RE: JDBCSpoolRepository & lock/unlock
Date Sun, 08 Jun 2003 16:31:55 GMT
> is the lock and unlock method invocation in JDBCSpoolRepository really

> If getNextPendingMessage() in eg accept() is called, the Message
> is removed from the LinkedList [=pendingMessages] with
> .removeFirst(), so another Thread couldn't get this removed Message.

What prevents the message from being put back on the list by
loadPendingMessages, if the message is still in the spool?  :-)

    --- Noel

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

View raw message