<xml> </xml>

db4o |

# ReplicationProcess.commit Method

commits the replication task to both involved ObjectContainers.

void commit();

#### Remarks

commits the replication task to both involved ObjectContainers.
Call this method after replication is completed to write all changes back to the database files. This method synchronizes both ObjectContainers by setting the transaction serial number (@link ExtObjectContainer#version()) on both ObjectContainers to be equal to the higher version number among the two. A record with information about this replication task, including the synchronized version number is stored to both ObjectContainers to allow future incremental replication.

#### See Also

ReplicationProcess Interface | com.db4o.replication Namespace