You can execute the Processing Units inside your IDE. This enables you to easily modify and test your applications. To do this, we use the OpenSpaces Integrated Processing Unit Container:

  1. Deploy an EDG space instance named spacePP, see instructions.

    In the next tutorials, when we learn how to use the Processing Unit concept to implement SBA (Space-Based Architecture), we use Processing Units running embedded spaces, instead of deploying an external space instance.

  2. If you haven't done so yet, import your project to eclipse (includes defining an Eclipse workspace variable called GS_HOME, pointing to your <GigaSpaces Root> directory, since all the project JARs are referenced with this variable).
  3. Choose one of the 3 Processing Unit projects: client, validator, or processor from the package navigator:



  4. Click Run > Open Run Dialog to open the Create, manage, and run configurations dialog.
  5. Create New launch configuration for Java Application:



  6. Name the new configuration and type org.openspaces.pu.container.integrated.IntegratedProcessingUnitContainer in the Main class field:



  7. Click Run to run the chosen Processing Unit inside the integrated container.
  8. Repeat these steps for the other two Processing Units.

How this Works

The org.openspaces.pu.container.integrated.IntegratedProcessingUnitContainer class (available inside the OpenSpaces JAR lib folder) contains a main method that when executed, searches the project for the directory META-INF\spring that contains the Processing Unit configuration file – pu.xml, and then loads the Processing Unit.

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