The gateway application uses Open Server Server-Library/C routines so that it can accept a login from Replication Server and process Replication Server requests. It forwards the requests to the foreign data server with the replicated data and returns the status of the request to Replication Server through Server-Library routines.
This book describes the requirements of an Open Server gateway to a data server, but it does not discuss Open Server programming. Refer to the Open Server Server-Library/C Reference Manual for information about programming with Open Server.
When you design a gateway for a data server, you must decide how the function strings will be written and how the gateway will process them. For example, if you use language function strings, the gateway will need a parser, and you will have to define the syntax of the function strings so that the gateway can parse them.
If you create RPC function strings, you can use Open Server registered procedures to process them. This is easier than creating a parser.
The gateway application must:
Use the data server vendor’s application programming interface (API) to access the database
Perform any translation needed to reformat the requests received from Replication Server function calls to the format required by the database API
Translate row results, messages, and errors into the Open Server result formats and return them to Replication Server
You must define the Open Server gateway in the interfaces file for the Replication Server.
Use the create connection command to create a connection to the gateway from the Replication Server managing the database.