如何将一层导入另一层3轮胎结构 [英] how to import one layer into another layer of 3 tire architecture

查看:71
本文介绍了如何将一层导入另一层3轮胎结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,



在3层架构中,

我们可以开发3个不同的层(表示层,业务层和数据访问)在单独的服务器上?



如果是,那么我们如何访问它?

例如,如果我在单独的服务器上开发DataAccessLayer然后我们怎样才能将这个图层用在不同服务器上的Presentation层?





谢谢你,

解决方案

例如,DAL可以作为 Web服务或自定义网络服务器公开,例如,基于WCF(在DAL服务上自托管),TCP (基于 System.Net.Sockets.TcpListener ,连接到使用 System.Net.Sockets.TcpClient 或使用 System.Net.Sockets.Socket ),依此类推。



请参阅:

http://en.wikipedia.org/wiki/Data_access_layer [ ^ ],

http://en.wikipedia.org/wiki/Web_service [ ^ ],

http://en.wikipedia.org/wiki / Windows_Communication_Foundation [ ^ ],

http://msdn.microsoft.com/en-us/netframework/aa663324.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/dd456779.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener。 aspx [ ^ ],

http:// msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/System.Net.Sockets.aspx [ ^ ]。



< DD> -SA

Respected sir,

In 3 Tier architecture,
Can we develop 3 different layers(Presentation layer,Business Layer and Data Access Layer) on separate server ?

If yes,then How can we access it ?
for example if i develop DataAccessLayer on separate server then how can we use this layer into Presentation layer which is on different server ?


Thank you,

解决方案

For example, DAL could be exposed as a Web Service, or a custom network server, say, based on WCF (self-hosted on the DAL service), TCP (based on System.Net.Sockets.TcpListener, connected to using System.Net.Sockets.TcpClient or using System.Net.Sockets.Socket), and so on.

Please see:
http://en.wikipedia.org/wiki/Data_access_layer[^],
http://en.wikipedia.org/wiki/Web_service[^],
http://en.wikipedia.org/wiki/Windows_Communication_Foundation[^],
http://msdn.microsoft.com/en-us/netframework/aa663324.aspx[^],
http://msdn.microsoft.com/en-us/library/dd456779.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx[^],
http://msdn.microsoft.com/en-us/library/System.Net.Sockets.aspx[^].

—SA


这篇关于如何将一层导入另一层3轮胎结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆