Registering a Project via the c8_client Program

Compile and run a query module by giving the c8_client utility the register-ccl-query command.

The following compilation is done on the server not on the client.


c8_client.exe [--config=<config_file>] --cmd=register-ccl-query 
--compiler-server-uri=<compiler-server-uri> 
--manager-server-uri=<manager-server-uri>  
--ccl-query=<path_to_ccl_query_file> 
[--compiler-flags=<compiler_flags>] 
--workspace-name=<workspace-name> --load=<load_name>

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).

compiler-server-uri

The URL of the manager of the server that you want to compile this project. 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/Compiler", for example, http:MyComputer:6789/Compiler.

manager-server-uri

The URL of the manager server that you want to run this project. 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. This file should contain only CCL statements and nothing else.

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.

workspace-name

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

load_name

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