Compiling and Running a Project

Compile a query module locally and run it by giving the c8_client utility the compile-and-run command.

This compilation is done on the local client, not on the server:


c8_client.exe [--config=<config_file>] --cmd=compile-and-run  
--server-uri=<server_uri>
--workspace-name=<workspace_name>
--program-name=<program_name>
--ccl-query=<path_to_ccl_query_file> 
[--compiler-flags=<compiler_flags>]

The parameters available with this compilation are:

Parameter

Description

config_file

The path to the Sybase CEP Server's configuration file (which is usually named c8-server.conf and is usually found under the server/conf directory).

server_uri

The URL of the server that you want to run the project on. This may be a remote server; it does not have to be a server on the same computer as the c8_client command is running on. The format of this parameter should be similar to: "http://host:port/manager", for example, http:MyComputer:6789/manager.

path_to_ccl_query_file

The full path and file name of the file that contains the CCL statements (.ccl file) or project information (.ccp file).

compiler_flags

You can specify the same flags as you would specify on the command line of the compiler. See Compiling Directly via the CCL Compiler, with the exception of the workspace and program names.

workspace_name

The name of the workspace in which the query module should be run.

program_name

The name of the project. This name will appear in Studio's Explorer View. This is also the name that you use if you want to stop the project after you have started it.