I would Like to ask you, if there is a way to set some operations into transaction.
I have problem such like this:
1) Generate File from data from database
2) Encrypt it
3) Send to server
I would like do it in one transaction. Any failured step 1-3 should cause the cancelling transaction.
Best regards,
I dont think you need a transaction for this as you only update the database in your last step. Any failure up to that point does not affect any other data from what you describe in your post.
Update: You may want to look at Volatile Resource Managers