Has anyone worked with IBM eXtremeScale Datagrids?
I am creating an interface to the eXtremeScale datagrid and wrote a java service.
Data is stored in the grids in format of an ObjectMap.
“ObjectMaps are like Java™ Maps that allow data to be stored as key-value pairs. ObjectMaps provide a simple and intuitive approach for the application to store data. An ObjectMap is ideal for caching objects that have no relationships involved.”
More info here:
Anyway, I wrote up a simple java service
IData value = IDataUtil.getIData( pipelineCursor, “value” );
String key = IDataUtil.getString( pipelineCursor, “key” );
// Get the ObjectMap
ObjectMap map1 = sess.getMap(“Map1”);
java.util.Map map = map1.getJavaMap();
JavaMap javaMap = (JavaMap) map;
If value is just a String object, put succeeds. But for an IData object, it fails. I see the following message in my console
[12/6/10 15:17:14:259 EST] 1a7fabd BaseMap I CWOBJ0033I: Class, class com
.wm.data.ISMemDataImpl, does not implement the clone() method. Using serialization instead for this Class in map Map1.
Any ideas what I might be doing wrong? I want to be able to just stick the IData object into the map and retrieve it later with the key.