Replication of remote objects on remote server. RRS feed

  • Question

  • Hi,

    I have a remote object (Singleton) that is designed in 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 ?












    Monday, August 28, 2006 6:41 AM

All replies

  • 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.


    Monday, August 28, 2006 10:17 PM