Multiple server objects in one remoting configuration file

I would like to use one remoting configuration file to set up multiple remoting objects so that I can use one Windows service to implement many objects.

I have been able to set up one object successfully.  But I would like one Window service to accommodate many remoting objects to duplicate the way MTS handles many objects in a package.  I would like to avoid having to set up a Windows service for every object.

I have attempted defining multiple <service> blocks within the <application> section fo the server-side configuration file but I am having no success.

Is what I am trying to accomplish possible  


Answer this question

Multiple server objects in one remoting configuration file

  • quangphuong

    You shouldnt have multiple service blocks, but instead have multiple wellknown tags for each of the objects you want to access inside the single service tag. I think this is what you are referring too, but I could be wrong.

    -James


  • Clare North

    Hi,

    I would strongly recommend that you review your design. It is not a very good idea to expose many objects for .NET Remoting. A better design would be to expose a one or two remoting objects and then having these objects delegating the work to specific objects on the server - something like the Facade Design Pattern.

    Facade Design Pattern:
    http://www.dofactory.com/Patterns/PatternFacade.aspx

    Also, this would be helpful when .NET Remoting is obsolete since most of the .NET Remoting stuff is encapsulated within a few objects.

    Regards,
    Vikram

  • Multiple server objects in one remoting configuration file