Component Object Model COM and DCOM - PowerPoint PPT Presentation

1 / 28
About This Presentation
Title:

Component Object Model COM and DCOM

Description:

DCOM : COM components on different machines. COM specification. COM ... DCOM fits best with Microsoft Platform i.e. Windows 98 and Windows NT while ... – PowerPoint PPT presentation

Number of Views:1113
Avg rating:3.0/5.0
Slides: 29
Provided by: sriniva7
Category:
Tags: com | dcom | component | dcom | model | object

less

Transcript and Presenter's Notes

Title: Component Object Model COM and DCOM


1
Component Object Model(COM) and DCOM
  • Srinivas Vennam
  • Sushant Batule

2
Objectives
  • History of COM
  • COM overview
  • COM specification
  • Interfaces and Objects
  • COM, CORBA RMI

3
History Of COM
4
Component Software Problem
  • Interoperability
  • Versioning
  • Language Independence
  • Transparency

5
COM overview
6
What is COM?
  • A framework for creating and using components
  • Makes software easier to write and reuse
  • Provides widest choice in services, tools,
    languages, and applications
  • Provides the only currently viable third party
    market for off the shelf components
  • Controls, tools, and server components

7
COM Features
  • Services used in a standard way,
  • regardless of location
  • Any Programming Language
  • Integrated with Development Tools
  • Flexible Security
  • Multiple Network Transports
  • Mature specification and reference
  • implementation
  • Ubiquitous

8
Accessing COM Services
COM Components in the same process
COM components in different processes
9
Accessing COM Services
DCOM COM components on different machines
10
COM specification
11
COM Specification Foundations
  • Reusable component objects
  • Binary standard for interoperability
  • True system object model
  • Provides distributed capabilities

12
Components Reusability
  • Using Existing Components to Reduce Development
    Cost
  • Future Reusability of Components being Developed

13
Object Interoperability
  • Stable versioning
  • Rapid object interaction
  • Location independence
  • Language neutrality

14
Location Independence
  • Components that interact more should be closer to
    each other
  • Some components can only be run on specific
    machines
  • Small Components Easy to Deploy - Increased
    Network Traffic
  • Large Components Difficult to Deploy - Reduced
    Network Traffic

15
Language Neutrality
  • Virtually all languages such as Java, Visual C,
    Visual Basic, Delphi, PowerBuilder, COBOL
    interact well with DCOM
  • Enables Rapid Prototyping

16
True System Object Model
  • Globally unique identifiers (GUID)
  • Reusability and inheritance
  • Single programming model
  • Life-cycle encapsulation
  • Object-level security

17
Security
  • Provides Security at Component Level and Method
    Level
  • Uses Access Control Lists (ACL) similar to
    Windows NT File System

18
Distributed Architecture
  • Inherently Distributed
  • Flexibility
  • Scalability Performance

19
Scalability and Performance
20
Interfaces and Objects
21
Interfaces
  • An interface is a named table of function
    pointers (methods)
  • An interface is not a class
  • An interface is not a COM component
  • COM clients only interact with pointers to
    interfaces
  • COM components can implement multiple interfaces
  • Interfaces are strongly typed
  • Interfaces are immutable

22
(No Transcript)
23
C implementation
  • COM Server
  • Implement IUnknown interface
  • QueryInterface, AddRef and Release
    methods
  • Implement supported interfaces
  • COM Client
  • Call CoCreateInstance method to get a pointer to
    the COM component
  • Get a ptr to the COM interface
  • Invoke COM methods and release pointer.

24
Platforms
  • UNIX
  • Apple Macintosh
  • Windows
  • MS JVM

25
COM, CORBA RMI
26
Comparison with CORBA and RMI
  • DCOM fits best with Microsoft Platform i.e.
    Windows 98 and Windows NT while CORBA is quite
    general.
  • RMI works only with Java but is quite suitable
    when application wants to exploit features of
    Java

27
Resources
  • Books
  • 1. Inside COM Dale Rogerson
  • 2. Essential COM Don Box
  • 3. Inside OLE Microsoft Press
  • Online Resources
  • 1. www.microsoft.com
  • 2. www.develop.com
  • 3. www.comdeveloper.com

28
Q A
Write a Comment
User Comments (0)
About PowerShow.com