Remoting.....via CAOs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Sorry about putting this in the wrong news group,
but qustions seem to get answered here.

Okay, so here goes the q:
I want to use CAO in remoting to comunicate with a
server program. I know if I use a singleton SAO, I can
keep track of the object, and alow the server to put
data in that class. How would I keep track of CAOs from
the server. How would the server program even know
when a client created a CAO? and how would I get a
reference to it?

I dont know if I have decribed the problem well enough,
or if the following would help ppl understand:
Basicaly take that well known client chat program,
now instead of a singleton SAO obj, make it a CAO
and have all of the clients "chatting" with eachother
as before.

Thanks in advance for any and all help.
 
HA! :)
Figured it out..... Use a remoting pattern called a factory.
Create a serverside singleton to create the client activated
objects. (via a function in the SAO) Pass the "shared" class
to the CAO (I did it via constructor), thus the the clients can
share info, and clients can have their own data aswell.

Thanks for all thoughts on the matter.
Please feel free to add any comments to this idea.
(eg: "bad idea... ohh... Never do that")
 
Back
Top