You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Oliver Zeigermann <oz...@c1-fse.de> on 2004/06/23 11:56:20 UTC
External Transactions
Folks!
I have just committed the initial version for external transactions. As
this needed in changes in some core classes I have set a tag before
commit: BEFORE_EXTERNAL_TX
Here is a small sequence of requests you can issue to see how all this
might work and what it might bring for you.
> TRANSACTION /slide/begin HTTP/1.1
> Content-length: 0
> Tx-Method: begin
> Tx-ID: TX3
> Host: localhost:8888
> GET /slide/files/file.xml HTTP/1.1
> Content-length: 0
> Tx-ID: TX3
> Host: localhost:8888
> PUT /slide/files/file31.xml HTTP/1.1
> Content-length: 24
> Tx-ID: TX3
> Host: localhost:8888
>
> <someXML> xyz </someXML>
> GET /slide/files/file.xml HTTP/1.1
> Content-length: 0
> Tx-ID: TX3
> Host: localhost:8888
> TRANSACTION /slide/commit HTTP/1.1
> Content-length: 0
> Tx-Method: commit
> Tx-ID: TX3
> Host: localhost:8888
or
> TRANSACTION /slide/rollback3 HTTP/1.1
> Content-length: 0
> Tx-Method: rollback
> Tx-ID: TX3
> Host: localhost:8888
TODO:
- This has been tested with the file store only. It is very likely that
the RDBMS will not work, yet
- Issue with SlideTokenWrapper has not cleanly been solved, yet
- Adapt Methods to what MS does (Daniel will do so)
- Allow for timeouts
- Client needs support for tx as well
Cheers,
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org
Re: External Transactions
Posted by Daniel Florey <df...@apache.org>.
Hi Stefan,
the currently checked in implementation is working as Olli described in
his previous post.
If you want to have some information on how WebDAV-transactions will
work, when MS-compliance is done, have a look at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_esdk_arch_webdav_transactions.asp
Regards,
Daniel
Stefan Lützkendorf schrieb:
> Hello,
> is there any where a specifcation or explanation about the
> transaction method?
> Regards, Stefan
>
> Oliver Zeigermann wrote:
>
>> Folks!
>>
>> I have just committed the initial version for external transactions.
>> As this needed in changes in some core classes I have set a tag
>> before commit: BEFORE_EXTERNAL_TX
>>
>> Here is a small sequence of requests you can issue to see how all
>> this might work and what it might bring for you.
>>
>>> TRANSACTION /slide/begin HTTP/1.1
>>> Content-length: 0
>>> Tx-Method: begin
>>> Tx-ID: TX3
>>> Host: localhost:8888
>>
>>
>>
>>> GET /slide/files/file.xml HTTP/1.1
>>> Content-length: 0
>>> Tx-ID: TX3
>>> Host: localhost:8888
>>
>>
>>
>>> PUT /slide/files/file31.xml HTTP/1.1
>>> Content-length: 24
>>> Tx-ID: TX3
>>> Host: localhost:8888
>>>
>>> <someXML> xyz </someXML>
>>
>>
>>
>>> GET /slide/files/file.xml HTTP/1.1
>>> Content-length: 0
>>> Tx-ID: TX3
>>> Host: localhost:8888
>>
>>
>>
>>> TRANSACTION /slide/commit HTTP/1.1
>>> Content-length: 0
>>> Tx-Method: commit
>>> Tx-ID: TX3
>>> Host: localhost:8888
>>
>>
>>
>> or
>>
>>> TRANSACTION /slide/rollback3 HTTP/1.1
>>> Content-length: 0
>>> Tx-Method: rollback
>>> Tx-ID: TX3
>>> Host: localhost:8888
>>
>>
>>
>> TODO:
>> - This has been tested with the file store only. It is very likely
>> that the RDBMS will not work, yet
>> - Issue with SlideTokenWrapper has not cleanly been solved, yet
>> - Adapt Methods to what MS does (Daniel will do so)
>> - Allow for timeouts
>> - Client needs support for tx as well
>>
>> Cheers,
>> Oliver
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org
Re: External Transactions
Posted by Stefan Lützkendorf <lu...@apache.org>.
Hello,
is there any where a specifcation or explanation about the
transaction method?
Regards, Stefan
Oliver Zeigermann wrote:
> Folks!
>
> I have just committed the initial version for external transactions. As
> this needed in changes in some core classes I have set a tag before
> commit: BEFORE_EXTERNAL_TX
>
> Here is a small sequence of requests you can issue to see how all this
> might work and what it might bring for you.
>
>> TRANSACTION /slide/begin HTTP/1.1
>> Content-length: 0
>> Tx-Method: begin
>> Tx-ID: TX3
>> Host: localhost:8888
>
>
>> GET /slide/files/file.xml HTTP/1.1
>> Content-length: 0
>> Tx-ID: TX3
>> Host: localhost:8888
>
>
>> PUT /slide/files/file31.xml HTTP/1.1
>> Content-length: 24
>> Tx-ID: TX3
>> Host: localhost:8888
>>
>> <someXML> xyz </someXML>
>
>
>> GET /slide/files/file.xml HTTP/1.1
>> Content-length: 0
>> Tx-ID: TX3
>> Host: localhost:8888
>
>
>> TRANSACTION /slide/commit HTTP/1.1
>> Content-length: 0
>> Tx-Method: commit
>> Tx-ID: TX3
>> Host: localhost:8888
>
>
> or
>
>> TRANSACTION /slide/rollback3 HTTP/1.1
>> Content-length: 0
>> Tx-Method: rollback
>> Tx-ID: TX3
>> Host: localhost:8888
>
>
> TODO:
> - This has been tested with the file store only. It is very likely that
> the RDBMS will not work, yet
> - Issue with SlideTokenWrapper has not cleanly been solved, yet
> - Adapt Methods to what MS does (Daniel will do so)
> - Allow for timeouts
> - Client needs support for tx as well
>
> Cheers,
> Oliver
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org