Options

Rollback | Handle Webservice call

naffnaff Member Posts: 32
Hi,

i am using web services to synchronise data from my database with several other databases/companies (all NAV).
E.g. when i change data in my database webservice calls to the other systems are made to replicate the change in their database.

If there is an error raised in one of the systems, I should rollback the changes in all databases. I want all the systems to stay synchronised.

Is there a possibility to handle this scenario?

Best Answer

Answers

  • Options
    naffnaff Member Posts: 32
    I could try to redo all my steps manually whenever an error occurs. But then what if something goes wrong during that process? Redo the redo-operations?
    This doesn't seem like a stable solution to me.

    I had the idea to keep all the transactions in all systems open until the last system tells me everything is fine and then fire the commit in all systems to close the transaction. But this seems to be very tricky since every webservice call means a new session in NAV and also I might get locking-problems if a lot of systems are involved.

    I think I will just go with an error log. So I allow the systems to get out of sync but give the user the neccessary information to repair the data where needed.
Sign In or Register to comment.