views:

39

answers:

2

Hi everybody,

For the moment, when an exception occur, I show a message error to the user. But I want, in this case, keep the transaction in a queue to retry again later.

Do you know if a pattern to resolve my problem exist ???

thanks, Tkanos

+1  A: 

By 'transaction' I assume that you refer to an action undertaken against a data store, as opposed to ACID transactions.

In that case, the Command pattern should fit you problem nicely.

Mark Seemann
A: 

I will look this pattern. Thanks.

Welcome to StackOverflow :-) Just so you know, this should be written as a comment on Mark's answer, not as an answer to your own question. Good luck!
unforgiven3