commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "B. K. Oxley (binkley)" <bink...@alumni.rice.edu>
Subject Re: [vfs] proposal: FileUtils
Date Wed, 02 Feb 2005 15:01:19 GMT
Mario Ivankovits wrote:
> In pseudo code:
> 
> UndoStack tx = new UndoStack();
> try
> {
> Backup(tx, ...)
> Copy(tx, ...)
> Move(tx, ...)
> }
> catch (Exception)
> {
>  tx.rollback(); <- process undo-stack
> }

This looks ok.  I still prefer each command to handle it's own cleanup 
(try/catch/finally in part existing for this purpose), but there's 
nothing wrong with the concept.

I'm curious what you find out about Commons Transactions.  When I looked 
  it over, it seemd to me designed with primitives for us to use to make 
our own transactions.  I missed any ready-to-use code for this purpose. 
  I wonder how much overlap there is with java.util.concurrent in the 
new JDK 5.


Cheers,
--binkley

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


Mime
View raw message