To run this example the Oracle Coherence Incubator must be built and installed locally. Instructions on how to achieve this are located here: Building the Oracle Coherence Incubator.
The source code for this example is located in the coherence-processingpattern-examples
module of the Oracle Coherence Incubator.
This simple example demonstrates submitting and executing a Java Callable
using
the Processing Pattern.
There are two applications to run as part of this example. The following details the intent, instructions and the order in which to run these applictions.
The following instructions assume that
$COHERENCE_INCUBATOR
is the directory in which the Oracle Coherence Incubator source code has been downloaded, unpacked and built according to the prerequisites outlined above.
Execute the following shell commands to start the "Simple Server", that of which will
execute submitted Callables
.
In a new Terminal / Shell Console for the "Simple Server"
Change to the Processing Pattern Examples directory.
cd $COHERENCE_INCUBATOR/coherence-processingpattern-examples/target
Run the "Simple Server"
java -jar coherence-processingpattern-examples-11.0.0.jar simple-server.properties
Execute the following shell commands to start the "Simple Submission Application".
This application will submit Callables
to the "Simple Server", that
of which will appropriately execute the submitted Callables
and return the results.
In a new Terminal / Shell Console for the "Simple Submission Application"
Change to the Processing Pattern Examples directory.
cd $COHERENCE_INCUBATOR/coherence-processingpattern-examples/target
Run the "Simple Submission Application"
java -jar coherence-processingpattern-examples-11.0.0.jar simple.properties