Using the Java Examples

TheJava 1.5 SDK examples provide sample code that performs all of the most common tasks you need to perform while writing an adapter with the SDK.

The examples progress from simple, basic tasks to more complicated implementations. Your best path for learning the Java 1.5SDK is to trace the source code of each example before compiling and executing it, using the HTML files under java5/doc for syntax and usage reference.

As you examine and run the Java examples, read the embedded comments for additional information. A description of each example generally begins with the comments in the runExample method and frequently begins with the words "The core of the example starts here."

Most of the examples use the same internal CCL query module mimicking temperature readings from sensors at different locations.

Every example, with one exception, requires you to identify the location of the Sybase CEP compiler (bin/c8_compiler under your Sybase CEP Studio or Sybase CEP Server installation) by passing the –D option to the JVM to specify a value for the variable c8.compilerPath.