Configuring data grids to use eXtreme data format (XDF)
If you are using an enterprise data grid, you must enable XDF so that both Java™ and .NET can access the same data grid objects. Use XDF to serialize and store keys and values in the data grid in a language-independent format.
Before you begin
About this task
When you use XDF, you get the
following benefits:
- Serialization of the data for sharing between Java, and C#/.NET applications.
- Indexing data on the server without requiring the user classes to be present, if field access is used.
- Automatic versioning of your classes so you can augment the class definitions when you add applications that require newer versions of the files. Older versions of the data can be used by taking advantage of the Mergable interface.
- Partitioning of the data with annotations in Java and C# to consistently partition from the application.
Restriction: You cannot use XDF if your data grids have EntityMetadata
defined.
Procedure
In the ObjectGrid descriptor XML file, set the CopyMode attribute to
XDF in the backingMap element of the ObjectGrid descriptor XML file.
<backingMap name="Employee" lockStrategy="PESSIMISTIC" copyMode="COPY_TO_BYTES">