Step-by-Step Instructions for Creating an In-process Adapter
This section describes the steps required to create an in-process adapter, from writing a C or C++ program to copying the ADL file to the Sybase CEP Server and Sybase CEP Studio plugins directories.
Write the C or C++ program.
Create a project file or a script file to specify what to compile and link. This is explained in more detail below.
Compile and link the program to a dynamically linkable library such as .dll in Microsoft Windows or .so in UNIX-like operating systems.
Create the .ADL file that describes the adapter's parameters, and that specifies the name of the library file (.dll or .so) that you created and the names of the entry points (the initialize, execute, shutdown, and, for Guaranteed Delivery, reconnect routines) in that library file.
Copy the library file to the Server's bin directory.
On Microsoft Windows, this is typically:
C:\Program Files\SybaseC8\server\bin
On UNIX-like operating systems, this is typically:
/home/<userid>/sybasec8/server/bin
Copy the .adl file to the server's plugins directory.
Copy the .adl file to studio's plugins directory.
On Microsoft Windows, this is typically:
C:\Program Files\SybaseC8\Studio\plugins
On UNIX-like operating systems, this is typically: