Re: Sandesha2 JTA transactions

Irantha <[email protected]> Mon, 01 Dec 2008 15:11:17 +0530
Newsgroups gmane.comp.apache.webservices.fx.devel
Organization WSO2
Message-ID <[email protected]>
Hi Paul,

Sandesha2 Transaction is used to make consistent changes to the data store.  Changing it from a JDBC local transaction to JTA transaction will
 make implementation complex and require to use a JTA aware data source for Sandesha2 persistence. 
A Simpler solution would be to differ Acknowledgments until JTA transaction commits. We can use javax.transaction.Synchronization.AfterCompletion() 
event to hook in acknowledgments. Sending side redelivery policy will take care of retrying aborted transactions.

WDYT?

Thanks,
Irantha



Paul Fremantle wrote:
> Irantha
>
> Sandesha2 already has a plug point for transactions. Please see:
>
> URL: https://svn.apache.org/repos/asf/webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/Transaction.java
>
> And the implementations of that.
>
> Paul
>
> On Fri, Nov 28, 2008 at 9:08 AM, Irantha <[email protected]> wrote:
>   
>> OMHO It would be useful to have Sandesha2 capable of sending and receiving
>> ws-rm messages within a JTA transaction (similar to how JMS implementations
>> support JTA transactions).
>>
>> On the sending side sandesha2 should look for an existing JTA transactions
>> and participate on that transaction if one exists.
>> On the receiving side need a parameter (in module.xml) that  specify whether
>> to start a new JTA transaction on message receive. If that parameter is
>> specified then should start a new JTA transaction for each message receive.
>>
>> What do you think?
>>
>> -Irantha
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>>     
>
>
>
>