Registering Classes for Portable Data Sharing
There are situations when applications form the same/different platforms are interested to share cached data among them. For this purpose, dynamic data sharing can be used. It shares the data between various versions of an object, either from the same platforms or different platforms at runtime. Classes for portable data sharing can be registered in following ways:
Using NCache Manager
-
Click on the cache name in Cache Explorer to open cache settings
-
Go to the Data Sharing tab.
-
Click the Add Shared Types button.
-
A drop down will appear in the Selected Class Attributes section in front of each attribute of common attributes list. If .NET class is selected, select the required Java attribute of the Java class to map it against .NET attribute. Data types of attributes to be mapped should be same or compatible. The compatible .NET and Java data types mapping tables are given below:
See Also