| Hi All < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> How to persist client’s event subscription to server in a common class. Basically I need to notify the client from server. In order to do this I tired by having a event in a common class where client and server can access and the client will subscribe it to that event and in-turn it’ll subscribe it to server, when I invoke a server method call from client the particular event will raise and it leads to call the common class’s event and in turn will raise the client’s method. This logic is working for Server-Activated Singleton remotable objects, but failing for server activated SingleCall remotable objects. The problem is when the control comes to server it loses the event subscription of the common class, so can any one tell how to persist the event subscription Thanks & Regards Karthikeyan |

Persisting events in a SingleCall Remoting server
SeanCarpenter
[douglasp] I wouldn’t do this. Using Remoting and this pattern is not recommended. You should really look at Enterprise Services.
I would look at Loosely Coupled Events in ES, if you need this.
Worst case, you can pass the reference to the client to the server which can store it in a static on the type.
David Roberts