Changes between Version 20 and Version 21 of MapGuideRfc78


Ignore:
Timestamp:
Jul 15, 2009, 2:53:31 AM (15 years ago)
Author:
klain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc78

    v20 v21  
    7575
    7676Changes to Feature Service
     77
     78ExecuteSqlQuery() and ExecuteSqlNonQuery() must use the same underlying connection on which the transaction started. So MgTransaction instance is passed in as parameters for both of these two methods. The MgTransaction implementation can return the undelying connection.
     79
    7780{{{
    7881/// \brief
     
    110113One example using the new API
    111114{{{
    112 MgTransaction tran = AcMapFeatureService::StartTransaction(resourceId);
     115MgTransaction* tran = AcMapFeatureService::StartTransaction(resourceId);
    113116AcMapFeatureService::ExecuteSql(resourceId, sql statement1, tran);
    114117AcMapFeatureService::ExecuteSql(resourceId, sql statement2, tran);
     
    120123If an MgTransaction has been started but hasn't been committed or rollbacked within the timeout, the transaction will be automatically rollbacked. If you call Commit() or Rollback() after timeout, an exception will be thrown reminding that the transaction has been timeout.
    121124
     125Two items will be added into WebConfig.ini for transaction timeout setting. If the transaction hasn't been committed or rollbacked within thirty minutes, it will be automatically rollbacked.
     126
     127DataTransactionTimeout             = 1800
     128DataTransactionTimerInterval       = 300
     129
    122130Bind MgTransaction to FDO connection
    123131
    124 The transaction has to be bound with the underlying FDO connection where it starts during its life circle. The underlying FDO connection will be kept used by the transaction until the call of either Commit() or Rollback().
     132The transaction has to be bound with the underlying FDO connection where it starts during its life circle. The underlying FDO connection will be kept used by the transaction until the call of either Commit() or Rollback(). The implementation of MgTransaction should be able to return the underlying connection.
    125133
    126134== Implications ==