This part of the documentation website is obsolete. Please see the latest Release Notes.

What's New


This page lists the main new features in XAP 9.7 (Java and .Net editions). It’s not an exhaustive list of all new features. For a full change log for 9.7 please refer to the new features and fixed issues pages.

MongoDB External Data Source

MongoDB is an extremely popular and powerful NoSQL database. XAP 9.7 introduces full support for using Mongo as a write behind data store for the space, and as a source for initial data load and read through scenario. This means that you can now use Mongo as an extension to the space, allowing two-way integration between XAP and Mongo.

LINQ Support for XAP.NET

LINQ (which stands for Language-Integrated Query) is a feature of the .Net framework and allows the user to use SQL like syntax within their code to filter and select subsets information from various data sources (relational and non relational databases, arrays, collections, etc.). XAP.NET 9.7 implements a custom LINQ provider which allows the developer to use LINQ expressions to query the space. Here’s an example:

var query = from p in spaceProxy.Query<Person>() 
            where p.Name == "Smith" 
            select p; 

foreach (var person in query) 
    // ... 

For more details please refer to the LINQ reference page in the XAP.Net 9.7 documentation.

Unique Indexes

You can now add a uniqueness constraint for indexes fields, making sure that values stay unique for that fields in the boundaries of a single space partition. This available for both Java and .Net. Here’s an example for how it’s defined:

public class Person

    @SpaceIndex(type=SpaceIndexType.BASIC, unique = true)
    private String lastName;

public class Person

    [SpaceIndex(Type=SpaceIndexType.Basic, Unique=true)]
    public String LastName{ get; set; }


Deterministic Deployment across Zones

Zones provide a powerful tagging mechanism for GSC which allow users to group together multiple GSCs and restrict processing unit instances only to these GSC. They also support SLA restrictions to make sure a primary and a backup of the same partition never end up in the same zone. This can be used to tag racks or data centers and make sure that high availability is maintained across them. When using the latter functionality, in many cases one zone has priority over another (e.g. the data center which is represents is geographically closer to your application’s end users). 9.7 adds support for prioritized zones. When tagging as zone as prioritized for a specific processing unit, the GSM will extend its best effort to make sure that all primary instances of that processing unit will be started on the prioritized zone. You can refer to the Deterministic Deployment Section in the docs for more details.

Change API Enhancements

The change API now includes an option to get the previous value of a changed field. XAP 9.7 also includes a new mechanism called Change Extension that encapsulates common usage patterns (such as Add and Get) into simpler to use API calls. Here’s an example for an add and get operation that uses the change extension mechanism:

GigaSpace space = // ... obtain a space reference
Integer id = ...;
IdQuery<WordCount> idQuery = new IdQuery<WordCount>(WordCount.class, id, routing);
Integer newCounter = ChangeExtension.addAndGet(space, idQuery, "counter", 1);

Advanced Projections

Projections are supported since XAP 9.5, however it only supported the projection of top level properties (i.e. properties that are belong to the top level space class and not to a nested object). Starting from version 9.7, you can also project nested properties (e.g. user.address.street) and not just top level properties. This can help in reducing the amount of traffic and serialization overhead when querying for specific properties.

SQLQuery<SpaceDocument> docQuery = new SQLQuery<SpaceDocument>(Person.class.getName() ,"",
    QueryResultType.DOCUMENT).setProjections("user.address.street", "user.address.zipCode");
SpaceDocument docresult[] = gigaSpace.readMultiple(docQuery);

Immutable Objects Support

Up to version 9.7, every space property needed to have both a getter and a setter, which made it impossible to implement read only properties. In version 9.7, you can define space properties that have only a getter, or no accessors at all. Refer to the Constructor Based Property Injection for more details.

Grid Activity Breakdown by Client in the Web UI

The web UI has a new functionality that enables you to view the activity in the data grid (throughput and breakdown of operations, client libraries version, etc.).

Better Separation of Thread Pools

Starting from version 9.7, XAP implements separate thread pools for client notifications and task executions, and these operations no longer use the same thread pool as regular CRUD operations. This makes the space more robust and less sensitive to excessive load of tasks and notification clients.

New Documentation Infrastructure and Enhanced Search

If you got here, you’ve been using our new docs infrastructure. We hope you like it. We’ve significantly improved the visuals, search experience, and also beefed up some of the content (checkout our all new XAP tutorial for example). Last, all of the documentation website source are stored in a public github repo and are based on Hugo and Markdown. If you see an error or something you’d like to improve, you’re more than welcome to fork this repository and submit pull requests.

New Docs