Object component technology COM +

zhaozj2021-02-17  51

Object component technology COM

China Academy of Sciences Software Microsoft Certification Senior Technology Center

As early as 1997, Microsoft has announced some of Com , but in the past two years, we have always been unclear from COM . As the WINDOWS2000 is released, COM as a component technology that is fused in the operating system will be more and more widely used in the future. COM is not a simple upgrade of COM, the underlying structure of COM is still based on CoM, which is almost included in COM, Com integrates these technical elements of COM, DCOM and MTS, which upgrades the COM component software to the application layer without Then, the software structure of the underlying is, which makes the component object model on the application layer through the operating system, and leaves the underlying detail of all components to the operating system, and therefore, the combination of COM and the operating system is more close. COM is no longer limited to COM component technology, which pays more attention to the design and implementation of distributed network applications. Com inherits COM almost all advantages, while avoiding some of the shortcomings in COM implementation, combining COM, DCOM, and MTS programming models, inheriting their vast majority characteristics, adding new features Function: If COM expands the MTS security model, it allows developers or administrators to specify security controls in the method level, pass the COM object environment information, making COM security models more efficient; COM supports MTS transaction semanties, not only Complete transaction operations through Setabort or SetComplete, and COM also supports BYOT (BringyourownTransAction), which allows COM components to participate in non-MTS transaction-processed transactions; COM inherits the concept of MTS object pool, and truly implement the function of the object pool. COM not only inherits the original most characteristics, but also adds some services, such as load balancing, queue services, memory databases, event services, etc. Queue services are very meaningful for distributed applications, especially in the case where the network speed is slow, this mechanism ensures that the application system can run reliably. When the application system contains a large number of nodes but the server is busy, the client application can put their request in the queue, and then processes these requests when the server load is light; if Com provides load balancing services, it can Realize dynamic load balancing, and the load balancing characteristics of the COM application does not need to write code, the client and component programs can be implemented in a usual manner. Getting load balancing features is not implemented by programming, but by configuring load balancing of distributed applications, as the queue services mentioned above, there is also a load balance. So how do you manage in COM ? In COM , a MMC standard interface environmental management program is used. It is similar to the MTS manager, but is not exactly the same, each COM application can include one or more COM components and role information related to the application. With the COM management program, we can set the COM application and the property information of the COM component, such as the transaction characteristics, security features, etc. of the component. COM saves most of the component information in the COM directory. The COM directory consists of unity of COM and MTS's registration model and provides a management environment specifically for components. We can check or set up COM directory information through a COM management program, or you can access COM directory information over a set of COM interfaces provided by COM .

转载请注明原文地址:https://www.9cbs.com/read-30004.html

New Post(0)