This page describes an older version of the product. The latest stable version is 14.0.

Spring Integration

All XAP components can be wired and configured with the application using corresponding Spring Beans.

The XAP Spring Integration supports:

Spring Automatic Transaction Demarcation
Spring Data
Spring JMS
Spring JPA
Spring Hibernate
Spring Remoting
String Batch
Spring Security


Lets look at a Spring configuration file that represents the creation of an embedded space:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
    xmlns:xsi="" xmlns:context=""
    xmlns:os-core="" xmlns:os-events=""

    <!-- Scan the packages for annotations -->
    <context:component-scan base-package="xap.tutorial"/>

    <!-- Enables to configure Spring beans through annotations -->

    <!-- A bean representing a space (an IJSpace implementation) -->
    <os-core:embedded-space id="space" name="tutorialSpace"/>

    <!-- Define the GigaSpace instance that the application will use to access the space -->
    <os-core:giga-space id="xapTutorialSpace" space="space"/>

And here is the code to access the Spring Bean within your application:

public void findSpace()  {
    FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(

    GigaSpace space = (GigaSpace) context.getBean("xapTutorialSpace");

XAP Spring Data

XAP Spring Data implements the Spring Data Framework that lets you use the concepts to the development of applications using XAP’s In-Memory Data Grid (IMDG) as the data store

See also:

You can find more information under Services & Best Practises