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.



What WebDAV software would you like to have?

Selected Customers:
Country: Norway
DnB NOR Group
Country: Finland
Bank of Finland
Country: United Kingdom
Bechtle Direct
Country: Sweden
BT Industries
Country: USA
California Chamber of Commerce
Country: Denmark
Danfoss Group
Country: Denmark
DFDS
Country: USA
Fluke Networks
Country: USA
HNI Corporation
Country: USA
IHS Inc
Country: USA
LandAmerica Financial Group
Country: Canada
Laurentian University
Country: USA
Microsoft
Country: Israel
RADVISION
Country: Ukraine
Raiffeisen Bank
Country: Netherlands
Sanoma Uitgevers
Country: USA
Siemens
Country: Australia
WorkCover NSW
Country: Ukraine
OTP Bank
Country: USA
Intel Corporation
Country: Austria
Austrian Federal Railways
Home .NET Server Java Server .NET Client AJAX Client AJAX Browser Map Drive Pricing Contacts

Updated: Wednesday, February 06, 2008