what i understood as per your statements was that you are not able to invoke the object..make your class to implement Serializable interface..then
you should be able to do it. Something like
public class <classname> implements Serializable{
}
Regards
Venkatesh S