Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2007

Tip: Looking for answers? Try searching our database.

switch between local and remote (web) Business Logic

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kies98@gmx.net - 27 Jan 2007 10:18 GMT
Hi Everyone,

i need some ideas for the following problem:

I am developing a three tier architecture. The client should be
implemented in WPF to be able to easily port the application to a web
application later on.

The Business and Data Tier should be easily portable from local
computer to a remote one somewhere on the web. So the only possible
Link between Client and Business Logic would be a Webservice, wouldn't
it?? In the local scenario I don't want to use a Webservice but only
the usual construct of interfaces to connect the layers.

What would be the best approach here ? Maybe you guys could push me
into some direction ??

I thought of implementing a second Assembly on the client which on one
side the client connects to, to send and receive it's data and which
can on the other side be configured easily to use either local
connection or the remote Webservice connection.

Thanks,
Oliver
David Sandor - 29 Jan 2007 02:47 GMT
Oliver,

In this situation you should build your application to use an 'adapter'
approach.

You are going to need to build an assembly that hits the web service for the
remote deployment and an assembly for the local deployment.  Create an
interface that is shared between your app, the remote adapter assembly, and
the local adapter assembly.  Your app should load the correct assembly
(local or remote adapter assembly) based on the .config file and make all
your calls to the loaded assembly by interface.  These adapter assemblies
expose the business logic to the application via the interface.

This will open up your app to work optimally in both scenarios.

-David Sandor

> Hi Everyone,
>
[quoted text clipped - 20 lines]
> Thanks,
> Oliver

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.