You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Paul Fremantle <pz...@apache.org> on 2007/01/29 16:26:00 UTC
[Commons Transaction] Using the sequence as part of another transaction
Hi
Suppose I want to increment a FileSequence as part of the same
transaction that does some other updates to other files. Is this
possible?
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [Commons Transaction] Using the sequence as part of another transaction
Posted by Oliver Zeigermann <ol...@gmail.com>.
Hi Paul!
The short answer is: no.
The long answer is: That is not the original idea of a FileSequence.
But you could easily write something like that using the ordinary
FileResourceManager: Initially create a file using the manager, write
0 as it's content. When incrementing just open the file, read the
number, increment it and write it back. That's it.
HTH
Oliver
2007/1/29, Paul Fremantle <pz...@apache.org>:
> Hi
>
> Suppose I want to increment a FileSequence as part of the same
> transaction that does some other updates to other files. Is this
> possible?
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org