Ansel's Blog

It would probably render the application more complex

博客园 首页 新随笔 联系 订阅 管理

随笔分类 -  关于.Net Remoting

研讨、发布.Net Remoting 技术的文章
摘要:---------------------------------------------.Net Remoting体系架构--------------------------------- •Remoting边界 •可远程化的对象类型 •跨越Remoting边界通信 –用ObjRef列集对象引用 –客户端的代理 –消息机制 –通道 •对象激活与其生命租用-------------... 阅读全文
posted @ 2006-08-04 14:08 Ansel 阅读(388) 评论(0) 推荐(0)

摘要:Factory Pattern在.Net Remoting Architecture中的实现 混合法 混合法需要使用 RecordingsFactory SAO,它提供了创建 RecordingsManager CAO 的方法。(如果您不熟悉 SAO 示例,请参阅"使用服务器激活对象通过 .NET Remoting 实现 Broker"。)下面的类图表描述了总体解决方案。 图 1... 阅读全文
posted @ 2005-08-22 15:48 Ansel 阅读(1183) 评论(2) 推荐(0)

摘要:Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication How To: Host a Remote Object in a Windows Service J.D. Meier, Alex Mackman, Michael Dunner, and Srin... 阅读全文
posted @ 2005-08-22 15:35 Ansel 阅读(679) 评论(0) 推荐(0)

摘要:一、服务器端激活模式 1、SingleCall模式 故名思义,SingleCall模式是一种单独调用激活模式,也就是说服务器端监听到客户端的代理类来了一个函数调用的时候,它都会自动在服务器端创建一个远程对象的实例(Remoting Instance)。然后等客户端完成了这个函数调用的时候,服务器端就会自动把这个远程对象的实例垃圾回收。也就是说它的生命周期只是局限在函... 阅读全文
posted @ 2005-08-18 11:50 Ansel 阅读(1549) 评论(6) 推荐(0)

摘要:.net Remoting的一个具体实现例子这里.net remoting 的想实现一个银行转帐的过程把用户输入的金额从用户A转入到用户B数据库:使用SQL SERVER里面的那个Pubs数据库,在这个数据库里面创建一个数据表叫Budget只包含两个字段,Name、MoneyCREATE TABLE Budget( NAME VARCHAR(8) NOT NULL, ... 阅读全文
posted @ 2005-08-17 15:31 Ansel 阅读(2808) 评论(9) 推荐(1)

摘要:WebService VS .NET Remoting 作者:Ansel 星期二 2005年4月19日 为了能清楚地描述Web Service 和Remoting之间得区别,我打算从他们的体系结构上来说起: Web Service大体上分为5个层次: 1. Http传输信道 ... 阅读全文
posted @ 2005-04-19 16:47 Ansel 阅读(1316) 评论(2) 推荐(0)

摘要:MarshalByRefObject, asthe name implies ,these objects are marshaled by reference,instead of copying a copy over the network.Only a pointer tothis object know as anObjRef. Contrary tocommon poi... 阅读全文
posted @ 2005-04-07 09:44 Ansel 阅读(444) 评论(0) 推荐(0)

摘要:1、First and foremost you should refer your own Assembly then define a Class derived from "MarshalByRefObject" ! 2、Then you should register its ports : Http or Tcp as following: HttpChannel cnl=ne... 阅读全文
posted @ 2005-04-05 15:14 Ansel 阅读(898) 评论(1) 推荐(0)