The getting started with Continuous Query sample is provided for a quick introduction to the Continuous Query filtering. It consists of shell and batch scripts designed to start a simple grid with very little customization needed. The sample shows how to filter results automatically with WebSphere eXtreme Scale data grid.
Running the sample1. Open a terminal or command-line window:
Windows: set JAVA_HOME=<java home>
UNIX: export JAVA_HOME=<java home>
2. CD <installRoot>/ObjectGrid/samples/ContinuousQuerySample
3. Start a catalog server:
Wait several seconds for the message:
CWOBJ1001I: ObjectGrid Server cs0 is ready to process requests.
4. Start a container server:
Windows: startcontainer.bat server0
UNIX: ./startcontainer.sh server0
Wait for several seconds for the message:
CWOBJ1001I: ObjectGrid Server server0 is ready to process requests.
6. Run the filter test:
Windows: runclient.bat filter
UNIX: ./runclient.sh filter
"Starting the Continuous Query Demo
Run the CQDemoGridWorker now..."
7. In another terminal, in the same directory, <installRoot>/ObjectGrid/samples/ContinuousQuerySample run the Worker test:
Windows: runclient.bat worker
UNIX: ./runclient.sh worker
Please post any feedback on this sample as a comment on this page.
|WXSContinuousQuery.zip||52.7kb||Nov 30, 2012|