Batch applications that use RRS as a coordinator have to be carefully designed. The usage of RRS implies the following rules:
Note: A FINISH TASK must be issued if a BIND TASK was issued.
Finishing a database session does not terminate its associated transaction when it is under the control of RRS; instead, the database session is closed and currency locks are released, but the transaction remains active and update locks are maintained until the RRS UR is committed or backed out.
It is possible to serially create and finish database sessions within a single RRS UR; however, unless transaction sharing is in effect, a deadlock may occur if a later session attempts to access a record that was updated by a previous session.
|
Copyright © 2014 CA.
All rights reserved.
|
|