Home
english
Home
.NET Server
Java Server
.NET Client
AJAX Client
AJAX Browser
Map Drive
Pricing
Contacts
info@ithit.com



Transactions Management

The Engine.IgnoreExceptions property provides new approach to transactions management in V2. In V1 the Engine.Run method never raised any exceptions writing all exceptions to the logfile. Now you can set the IgnoreExceptions property to false and if any exception occurs in your interfaces implementation the Run method will throw an exception.

Often during a single call to Run method several method implementations are called by the Engine each updating your repository. To execute all methods in a single transaction you will usually set IgnoreExceptions property to false and start a transaction before calling Run method (or during the first update). If any update fails you will rollback the transaction in catch block:

engine.IgnoreExceptions = false;

try

{

    BeginTransaction();

    engine.Run(request, response);

    CommitTransaction();

}

catch

{

    RollBackTransaction();

}

finally

{

    CloseConnection();

}

Note that you do not need to log the exception in your catch block. The exception is logged by the Engine in Run method.


comments powered by Disqus

Selected Customers:
USA
Symantec
Country: Sweden
Toyota
Country: USA
Microsoft
Country: Ukraine
Raiffeisen Bank
Country: USA
Siemens
Country: USA
Lockheed Martin
Country: USA
Intel Corporation
Country: Germany
SAP AG
Country: Israel
Autodesk, Inc.
Country: USA
U.S. Customs and Border Protection Agency
Have a question
about API?
Ask on StackOverflow


Found a bug or have a confidential question?
Write to info@ithit.com
Home .NET Server Java Server .NET Client AJAX Client AJAX Browser Map Drive Pricing Contacts

Updated: Wednesday, February 06, 2008