On 12/1/08, Irantha <[EMAIL PROTECTED]> wrote:
> 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.
I am not aware of the complexity of doing this but I think better way
is to do like this. Please see the below comment.

> 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.

I found this Research paper[1] which discuss this problem. I think
here the idea is to implementing the Queued Transaction processing
model to guarantee the application to application reliability.
As I see you are suggesting a method similar to Direct Transaction Processing.

thanks,
Amila.


[1]http://www.research.ibm.com/AEM/pubs/wes2003final.pdf

>
> 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]
>>>
>>>
>>>
>>
>>
>>
>>
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to