• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 430
  • Last Modified:

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.
0
noulouk
Asked:
noulouk
  • 2
1 Solution
 
dunglaCommented:
Activator.GetObject will return an object from server's object pooling
0
 
dunglaCommented:
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now