Hello sir, madam and my dear friends
I read in book that if you want to send any objects from client to server in RMI then they must satisfy the following conditions
1. It must be a serializable object
2. It must be either a primitive type
3. Array or collection of primitive type or serializable object
4. Remote Object
I have doubt regarding Remote object. As per the book they say that when you pass a remote object to a remote method then java actually sends remote object stub.
Now my question is what is the use of stub at server side. My understanding is that java sends remote stub by serializing it.
Please correct me if I am wrong.
Waiting for your replies.
Thanks and Regards
Rohit.
I read in book that if you want to send any objects from client to server in RMI then they must satisfy the following conditions
1. It must be a serializable object
2. It must be either a primitive type
3. Array or collection of primitive type or serializable object
4. Remote Object
I have doubt regarding Remote object. As per the book they say that when you pass a remote object to a remote method then java actually sends remote object stub.
Now my question is what is the use of stub at server side. My understanding is that java sends remote stub by serializing it.
Please correct me if I am wrong.
Waiting for your replies.
Thanks and Regards
Rohit.