remoting : send message from server to client

Posted on 2005-04-11
Last Modified: 2008-02-26
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),

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: (solution 2)

I found an article which one uses a publisher to send message to the client when the database is updated:
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.
Question by:noulouk
    LVL 13

    Accepted Solution

    Activator.GetObject will return an object from server's object pooling
    LVL 13

    Expert Comment


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    c# vs2013 corrupt .dll 4 34 mvc 2 30
    c# PowerShell runspace woes 5 37
    Change to event 1 49
    Article by: Ivo
    Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
    We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now