UI, BLL and DA in different servers
-
hi all, in my .net application i have my ui in one server and business logic in one server and database from another server, how can i establish communicatin between these 3 servers if i want to get dabase info into code behind how can i access the data Could some one help me
Thanks sri
-
hi all, in my .net application i have my ui in one server and business logic in one server and database from another server, how can i establish communicatin between these 3 servers if i want to get dabase info into code behind how can i access the data Could some one help me
Thanks sri
Use ADO.NET to communicate between business logic and the database (it will handle the network traffic for you). If your UI and business logic are on different servers "Windows Communication Foundation" surprisingly enough can be used as a foundation to communicate between two Windows servers. :) If you are stuck with the outdated 2.0 Framework you might have to use Remoting or old webservices for the communication instead. This pretty much forces you to make your own data transfer objects and other boring tasks. You can also use DataSets to communicate from your business logic to the GUI - this allows you to reflect the database more or less unchanged in the GUI which greatly reduce development time for the "small" price of unmaintanable code. If you are a consultant who only needs to make sure there is a future revenue stream it might be the way to go. If you do use datasets, please make sure to put this in the subject of future code project posts so I won't open them by accident and get sick. :)