Summary: This step shows how to build, package and deploy the application while taking advantage of XAP's dynamic load balancing capabilities and the Space as a highly HttpSession store

Before You Begin

We recommend that you do the following before starting this step of the Tutorial:

  • Follow Step 1 of this tutorial
  • Follow Step 2 of this tutorial

Building the Example Application

The application sources and build scripts can be downloaded here. This application uses a Maven build script, so you need to make sure you're connected to the internet when you first run it to allow Maven to download all the dependencies.

To build the example you should follow the following steps:

  • Download and unzip the application sources
  • Download and install GigaSpaces XAP 9.6.2 Premium Edition.
  • Install the GigaSpaces Maven Plugin as described here. Please take note of the GigaSpaces build number in the console output, e.g.:
    D:\GS-Releases\gigaspaces-xap-premium-9.6.2-ga\tools\maven>installmavenrep.bat
    ""
    ""
    "Installing XAP 9.6.2-RELEASE jars"
    ""
    ""
  • cd to the root directory of the application
  • Edit the value of the gsVersion property in the pom.xml file at the root directory to reflect the GigaSpaces build you're using (this is the build number that the Maven plugin installation script outputs to the console when invoked).
    For example, if you are using GigaSpaces XAP 9.6.2 you should modify the pom.xml to have:
    <gsVersion>9.6.2-9900-RELEASE</gsVersion>
  • Run the following Maven command:
    mvn package

    This will download the application's decencies, compile the sources and package the processor processing unit and the web application.

Deploying the Example Application

To deploy the application, you should do the following:

  • Start a GigaSpaces Agent
  • Run the following Maven command from the application's root directory:
    mvn os:deploy

Creating Sample Data

To have an initial sample data set to work with, simply click the "Create Dummy Data" link in the welcome page of the application. This will create a number of Owner s, Pet s and Vet s that you can work with to experience the application's functionality.

Monitoring the Deployed Application

To monitor the application, start the GigaSpaces UI using the <GigaSpaces root>/bin/gs-ui.sh(bat) or the GigaSpaces Web UI.

Backing the HttpSession with the Space for High Availability

Please refer to this page for directions on how to enable HttpSession high availability for the web application.

Configuring Dynamic Load Balancing

Please refer to this page for directions on how to enable HttpSession high availability for the web application.

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