remoting : send message from server to client

Hi experts,

I build a remoting app.
All works fine with my interface: I can send a message from one client to another one ...

The problem is that I want my server to send message to a client (I mean not client -> server -> client , but only server -> client).
I found code to do that:
SrvActObj = (RemoteServer)Activator.GetObject(typeof(WRemoteServer.RemoteServer),
                              "Http://localhost:8085/RemotingServer/RemotingServer.soap");

But the server is considered as client in that case !!!!!!!!!!??????????

So, how can I do without using the previous code to send a message directly from server ?

My app is something like this:
http://www.c-sharpcorner.com/Code/2003/Nov/RemotingEvents.asp (solution 2)

I found an article which one uses a publisher to send message to the client when the database is updated:
http://www.dotnetspider.com/technology/kbpages/565.aspx
I don't understand why the publisher uses Activator.GetObject. I think it's possible to retrieve the remoteobject directly from the server which one builds this remoteobject.

Thanks in advance for your answers.
LVL 9
nouloukAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dunglaCommented:
Activator.GetObject will return an object from server's object pooling
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dunglaCommented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.