Design of a MidO 2 PL Database Replication Protocol in a Middleware Architecture