db4o |

# ExtObjectContainer.replicationBegin Method

prepares for replication with another com.db4o.ObjectContainer .
An com.db4o.ObjectContainer can only be involved in a replication process with one other com.db4o.ObjectContainer at the same time.
The returned com.db4o.replication.ReplicationProcess interface provides methods to commit and to cancel the replication process.
This ObjectContainer will be "peerA" for the returned ReplicationProcess. The other ObjectContainer will be "peerB".

ReplicationProcess replicationBegin(
ObjectContainer peerB,
ReplicationConflictHandler conflictHandler
);

#### Parameters

peerB
  the com.db4o.ObjectContainer to replicate with.
conflictHandler
  the conflict handler for this ReplicationProcess. Conflicts occur whenever replicate is called with an object that was modified in both ObjectContainers since the last replication run between the two. Upon a conflict the resolveConflict method will be called in the conflict handler.

#### Return Value

the com.db4o.replication.ReplicationProcess interface for this replication process.

#### See Also

ExtObjectContainer Interface | com.db4o.ext Namespace