471,334 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

Remoting.....via CAOs

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.

Jan 21 '06 #1
1 1042
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")

"TheMadHatter" wrote:
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.

Jan 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Henrik Nordgren | last post: by
2 posts views Thread by jabailo | last post: by
6 posts views Thread by Z D | last post: by
8 posts views Thread by Raju Joseph | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.