How to Run the Examples
Java: Running the ExamplesPrerequisitesIn order to run the examples, you must have Coherence version 3.4.2 or later and a Java $COHERENCE_HOME $JAVA_HOME Directory StructureThe directory structure described below is relative to the "examples" directory, the directory into which the examples were unzipped. java/bin
resource InstructionsExecute the run script. There are two parts to running the example. First, start one or more cache servers: "bin/run-cache-server". Each execution will start a cache server cluster node. To add additional nodes, execute the command in a new command shell. Second, in a new command shell, run with the name of the example such as "bin/run contacts". The Driver.main method will run through the features of the example with output going to the command window (stdout). .NET: Running the ExamplesPrerequisitesIn order to run the examples, you must have Coherence version 3.4.2 or later for .NET and Visual Studio 2005 or later. To run the examples, you will also need to build the Java examples. The Java version is required because the Coherence*Extend proxy and cache servers require Java. Also, the examples depend on Java example classes that must be built before running the proxy and cache server. Directory StructureThe directory structure described below is relative to the "examples" directory. resource InstructionsFirst, following the java instructions, start a proxy server (run-proxy) and zero or more cache servers (run-cache-server). The proxy server is storage enabled so additional cache servers are optional. Second, from Visual Studio, choose Debug->Start without Debugging or execute the <example>.exe produced from the build in a windows command shell. The Driver.Main method will run through the features of the example with output going to the command window (stdout). C++: Running the ExamplesPrerequisitesIn order to build the examples, you must have the appropriate C++ library of Coherence version 3.4 or later. Also you must have a C++ development environment. To run the examples, you will also need to build the Java examples. The Java version is required because the Coherence*Extend proxy and cache servers require Java. Also, the examples depend on Java example classes that must be built before running the proxy and cache server. $COHERENCE_CPP_HOME The supported C++ compilers are:
Directory StructureThe directory structure described below is relative to the "examples" directory. resource InstructionsFirst, following the java instructions, start a proxy server (run-proxy) and zero or more cache servers (run-cache-server). The proxy server is storage enabled so additional cache servers are optional. Secondly do the following: Windows Linux/Mac and Solaris
|