Wiki Home

Which Pattern To Use


Namespace: WIN_COM_API
I want to make my distributed application flexible on which technology to use between the UI and the BO. In a local scenario, I want the application to use .NET Remoting. In a remote scenario, Web Services should be used.

What I have in mind is something like this:
                         +----+
                         | UI |
                         +----+
                           |
                 +-------------------+
                 | Some pattern here |
                 +-------------------+
                           |
           +---------------+-------------+
+-------------------------+ +------------------------+
| .NET Remoting interface | | Web Services interface |
+-------------------------+ +------------------------+

     .NET Remoting---------OR-------Web Services

+-------------------------+ +------------------------+
| .NET Remoting interface | | Web Services interface |
+-------------------------+ +------------------------+
           +---------------+-------------+
                           |
                         +----+
                         | BO |
                         +----+

My confusion here is witch pattern to use to instanciate the right interface. Do I use an abstract factory, a prototype or a strategy pattern? Or something else?

I have the Design Patterns book from Gamma & friends, but I can't seem to find the appropriate pattern for this (may be ready for a vacation).

TIA
( Topic last updated: 2005.06.16 11:21:39 AM )