The full Java tutorial example package including execution scripts can be found under <GigaSpaces Root>\examples\Tutorials\JavaSpaces\OrderManagementGS.

How to import the project to Eclipse IDE after downloading

Full Package Directory Structure

After downloading and extracting, your example folder should look something like this:

PP_Order_Management – tutorial folder
client – Client Processing Unit project
src
com\gigaspaces\examples\tutorials\parallelprocessing\client – Client service beans Java source files.
OrderEventFeeder.java – POJO service bean that feeds orderEvent objects to the space
OrderEventCounterDisplayer.java – POJO service bean that counts orderEvents and displays their information
META-INF\spring
pu.xml – Client Processing Unit configuration XML file
validator – Validator Processing Unit project
src
com\gigaspaces\examples\tutorials\parallelprocessing\validator – Validator service beans Java source files
OrderEventValidator.java – POJO service bean that validates the orderEvents
META-INF\spring
pu.xml – Validator Processing Unit configuration XML file
processor – Processor Processing Unit project
src
com\gigaspaces\examples\tutorials\omsgs\processor – Processor service beans Java source files
OrderEventProcessor.java – POJO service bean that processes the orderEvents
META-INF\spring
pu.xml – Processor Processing Unit configuration XML file
common – domain model used by all the Processing Units
src\com\gigaspaces\examples\tutorials\omsgs\common
OrderEvent.java
docs – expected output files for the 3 Processing Units
expected_output_pp-oms-client.txt
expected_output_pp-oms-validator.txt
expected_output_pp-oms-processor.txt
bin - build and compile scripts.
compile.bat/.sh – a script that compilies and builds the 3 Processing Units (Windows/Unix)
copy_to_deploy_folder.bat/.sh – a script that copies the compiled Processing Units to the GigaSpaces deploy folder
setExampleEnv.bat/.sh – sets the environment variables for the example scripts
build.xml – XML file used with Ant to compile/build/prepare for deployment
readme.txt

Importing Project to Eclipse IDE

  1. If you haven't done so yet, first download GigaSpaces XAP and the example package.
  2. Start Eclipse, using import existing project. Import the 4 sub-projects:
    oms-gs-client, oms-gs-validator, oms-gs-processor and oms-gs-common
    from <GigaSpaces Root>\examples\tutorials\JavaSpaces\OrderManagmentGS to your workspace.
  3. Add a variable to the Eclipse workspace named GS_HOME pointing to your <GigaSpaces Root> directory.

GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence