RAP - The Trading Edition In-process Adapter

The RAP - The Trading Edition in-process adapter reads a Sybase CEP data stream and transforms it into a feed handler for RAP.

The Sybase CEP RAP in-process adapter, named c8_write_to_rap.adl, is located in the plugins folder of your Sybase CEP Studio installation directory. The file exists in the server/plugins directory as well. The adapter uses C/C++ and supports only Linux and Solaris platforms.

In Sybase CEP, container processes run queries and C/C++ adapters; each container in a Sybase CEP cluster also stores message templates for all applicable adapters. Any changes or additions you make to message templates must be reflected in every container in a cluster, and require you to restart every container. Use the RAP in-process adapter in a Sybase CEP cluster with only one active container, or one with a small number of containers that you can process together, to avoid disruptions on a large scale.

The c8_write_to_rap.adl file is located in the plugins folder of your Studio installation directory. Before you run the RAP in-process adapter, define the following parameters in the ADL file:
  • RAPMessageType - (required) specifies which tables in RAP to send messages to based on message type. The RAPMessageType must be the same as the MessageType in the RAP data stream (RDS) Template.
  • CEPTimeStamp - (optional) specifies the Sybase CEP Time Stamp at the beginning of each message.

The RAP in-process adapter must be initialized before messages are recieved from the Sybase CEP Server. In the Sybase CEP Studio Project menu, attach the adapter to an output stream by selecting the adapter from a drop-down list of output adapters. Support multiple publishers and subscribers by attaching the adapter to multiple streams. The RAP in-process adapter communicates with RAP - The Trading Edition through its RAP Publisher API.