Advanced Replication Guide : Using advanced replication with applications : Building messages for synchronization : Forwarding messages to the master database
  
Forwarding messages to the master database
After a message has ended with the MESSAGE END statement and has been committed to make it persistent, you send it to the master database using the MESSAGE FORWARD statement. Each sent message is issued a reply message from the master database and each message returns a result set that should be fetched through the client application. The syntax is:
MESSAGE unique_message_name FORWARD
  [TIMEOUT {FOREVER | seconds }]
For example:
MESSAGE mymsg FORWARD TIMEOUT 60;
You can set the TIMEOUT option to define how long the replica database waits for the reply message before it expires and has to be requested using the MESSAGE GET REPLY statement described in the following section.
Note If a master does not receive a complete message, then the master will not execute the portion of the message that it did receive.
See also
Building messages for synchronization