Starting Multiple Spaces in One Container

  GigaSpaces 5.X

Documentation Home
Quick Start Guide
Release Notes

Previous release

  Search Here
Searching GigaSpaces Platform 5.X Documentation

                                               

Summary: Creating spaces by adding tags to a container's schema file.
Deprecated Since GigaSpaces 5.0
  • The container-name.xml container configuration file, and the space xxx-space-config.xml, server.xml files are deprecated configuration since GigaSpaces version 5.0 – if you are using GigaSpaces version 5.0 and onwards, use the space, container, and cluster schema files.
  • The ability to create and run more than one space in a space container is a deprecated feature since GigaSpaces version 5.0 – if you are using GigaSpaces version 5.0 and onwards, use the space, container, and cluster schema files.

Overview

You can start a container and have it starting multiple spaces by adding the space names into the container's space listing, container-name.xml. When the container starts, it checks the spaces listed in this file and automatically creates these with their relevant settings.

This method for creating spaces can be used in deployment environment when you need to start multiple spaces within the space container immediately when starting the container.

To create a container file that launches multiple spaces:

  1. Create a file named container-name.xml (MyContainer.xml) with the following structure:
    <MyContainer>
        <JSpaces>
            <MySpace1>
               <isPrivate>false</isPrivate>
               <schema>cache</schema>
               <properties>
               </properties>
               <load-on-startup>true</load-on-startup>
             </MySpace1>
             <MySpace2>
               <isPrivate>false</isPrivate>
               <schema>cache</schema>
               <properties>
               </properties>
               <load-on-startup>true</load-on-startup>
             </MySpace2>
        </JSpaces>
    </MyContainer>
  2. Place the MyContainer.xml at <GigaSpaces Root>config.
  3. Start the container by running:
    gsServer java://localhost:10098/MyContainer
    

Wiki Content Tree


Your Feedback Needed!

We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.

Labels

 
(None)