Replication of remote objects on remote server.  
Author Message
Avi Kumar





PostPosted: Architecture General, Replication of remote objects on remote server. Top

Hi,

I have a remote object (Singleton) that is designed in C#.net to service the request of users working on single project. We need this object should work exclusively for the given partiyuclar project.

Now scenrios is at run time many new projects can be created and we need need separate same type of remote objects (singleton) to created to service the requests comming from users working on these projects.

Can we replicate the remote objects

Regards,

Avi



Architecture4  
 
 
Pranshu





PostPosted: Architecture General, Replication of remote objects on remote server. Top

Hi Avi,

A pool is very close to a singleton in terms of implementation, you could consider having a pool instead of a singleton.

Also of the consumed remoting object is a part of different app pool for different projects - then you have different instances anyway.

If that is not the case, a simple way would be to identify the consumer by some parameter and use a factory method in same or different class to pass you the appropriate object ( for the project) from the pool, with a new object being instanciated everytime the factory encounters a new value for the identity parameter.

Pranshu