Thanks hrbuckley,
with the help u provided ,I managed to get the shared objects,

but I am not able to retrieve the data from userdefined class objects.
suppose I want to share the vector which contains ABC class's Object
code which put's the data on runtimeshare
Code:
class ABC
{
String msg;
}
class ---{
RuntimeStore store = RuntimeStore.getRuntimeStore();
ABC abc=new ABC();
abc.msg = "Hi";
Vector vec=new Vector();
vec.addElement(abc);
long ID = 0x9e281cf2762efac3L;
// put() throws an IllegalArgumentException if an object with the same ID exists.
try {
store.put( ID, vec);
} catch(IllegalArgumentException e) {
// Handle exception - an object with the same ID exists.
} }
Code which retrieves the data from runtimeshare
Code:
class ABC
{
String msg;
}
class ---{
RuntimeStore store = RuntimeStore.getRuntimeStore();
// Create an object and a unique number to identify the object.
long ID = 0x9e281cf2762efac3L;
try {
// get() returns the objectm with the specified ID if it exists; null
// otherwise.
Vector vec= (Vector)store.get(ID)
if(vec.size()>0)
ABC abc=(ABC)vec.elementAt(0);//gives Error java.lang.ClassCastException
} can anybody tell me how to solve this Problem?