Add a new table to your RAPStore and RAPCache database
schemas if the standard schemas do not suit your needs, or to use custom messages.
-
Modify the RAPStore and RAPCache database schemas:
-
Generate both the RAPStore and RAPCache PowerDesigner model (PDM) and data definition language (DDL) scripts for the new table.
-
Run the scripts to update the database. See Data Model and Queries > Generating DDL Scripts.
-
Create a new RDS message template:
-
Create a new RDS message definition specifying the new table as the destination table.
-
Ensure that the message type has a unique value across all RDS message definitions.
-
For each column in the new database table, add a field definition block to the message definition.
-
Ensure that all publishers and subscribers are updated with the new RDS message templates by copying the new information to all subscribers.
-
Modify the publisher code:
-
Make a call to the pub_beginMessage API specifying the new message definition's message type.
-
For each field in the message, make a call to the appropriate pub_setField API to pass in the field data.
-
Make a call to the pub_sendMessage API to send the data.
-
Stop, shut down, and restart the subscribers and publishers for the changes to take effect.