D
david
hello ppl,
I am a newbie. I need some help. I have been going through forums to
find some details. But could not find what exactly i am looking for.
anyways, my question is.
I have a server and a set of clients connected to the server to
perform a certain task, using RMI. when a client performs an
operation, the server needs to update other clients (actually all
clients) about the operation, so that all the clients would have the
latest information about the task. now my question is..
i)how will the server update all the clients when actually the
operation is invoked(through the RMI object in the server) by one
client.
Should the server 'act' like a client and try to update every client
using an RMI objects exported in the clients' side?
another question related to the serialization when passing the object
over the RMI call,
if i have a class which is something like 'public class
MySerialObject implements Serializable'
ii)ok.lets say I pass one of the object (instance of )of
MySerialObject as the response for the RMI call from the client. Do I
have to do anything on the client side to deserialize the object???
(in socket I would need to explicitly marshalling and unmarshalling.)
I have just started reading about RMI since 3-4days ago. and I am not
very good at Java programming either, as i am a C/C++ developer.
just curious, since i have done a lot of socket programming, I feel
that RMI looks easy to implement, especially in this kind of
requirement,for which multiple clients connected to a single server to
do a collective task.(correct me if m wrong, pls)
hope i have not repeated the same question someone has already asked
or asked in a different way.
as i read different materials, i get many other doubts to be clarified
in RMI also. but will ask one by one.
thanks for any kind of help or response
--david
I am a newbie. I need some help. I have been going through forums to
find some details. But could not find what exactly i am looking for.
anyways, my question is.
I have a server and a set of clients connected to the server to
perform a certain task, using RMI. when a client performs an
operation, the server needs to update other clients (actually all
clients) about the operation, so that all the clients would have the
latest information about the task. now my question is..
i)how will the server update all the clients when actually the
operation is invoked(through the RMI object in the server) by one
client.
Should the server 'act' like a client and try to update every client
using an RMI objects exported in the clients' side?
another question related to the serialization when passing the object
over the RMI call,
if i have a class which is something like 'public class
MySerialObject implements Serializable'
ii)ok.lets say I pass one of the object (instance of )of
MySerialObject as the response for the RMI call from the client. Do I
have to do anything on the client side to deserialize the object???
(in socket I would need to explicitly marshalling and unmarshalling.)
I have just started reading about RMI since 3-4days ago. and I am not
very good at Java programming either, as i am a C/C++ developer.
just curious, since i have done a lot of socket programming, I feel
that RMI looks easy to implement, especially in this kind of
requirement,for which multiple clients connected to a single server to
do a collective task.(correct me if m wrong, pls)
hope i have not repeated the same question someone has already asked
or asked in a different way.
as i read different materials, i get many other doubts to be clarified
in RMI also. but will ask one by one.
thanks for any kind of help or response
--david