Thanks Mauricio.
When the unlucky thread fails, will it retry automatically?
I will have to test this scenario. (Not that I don't trust you ;-) It is absolutely crucial to us that all actions the failing thread takes (JMS dequeue/queue, database, etc) are rolled back completely and then resumed and replayed with the updated state from the other thread.