SlideShare a Scribd company logo
Q8M1 – SC Dudy Fathan Ali S.Kom
Distributed Application Development
Q8M1
Dudy Fathan Ali, S.Kom (DFA)
2017
CEP - CCIT
Fakultas Teknik Universitas Indonesia
Additional Documents
Q8M1 – SC Dudy Fathan Ali S.Kom
bit.ly/4sc1-repo
Download this Powerpoint Slide:
Objectives
Q8M1 – SC Dudy Fathan Ali S.Kom
Identify COM+
Create COM+ serviced components
Explore COM+ applications
Q8M1 – SC Dudy Fathan Ali S.Kom
Introducing COM+
Distributed Application Development
o Earlier distributed applications were based on DCOM.
o DCOM-based applications do not provide features such as secure
communication and reliable data transfer.
o To include such features in the distributed applications, you need to
implement COM+.
Q8M1 – SC Dudy Fathan Ali S.Kom
Evolution of COM+
Distributed Application Development
o Single-tier applications do not provide code reusability.
o COM was introduced to provide code reusability.
o COM had the following limitations:
o It does not allow a client application residing on a separate
computer to access a component.
o It does not provide features such as security and consistency of
data.
o These limitations led to the development of DCOM.
Q8M1 – SC Dudy Fathan Ali S.Kom
Evolution of COM+ (contd.)
Distributed Application Development
o DCOM:
o Allows developers to create a component that can be accessed by a
client application residing on a separate computer.
o Provides features such as security and platform independence that
are required in the distributed application architecture.
o DCOM does not provide features such as reliable data transfer,
enhanced performance, and optimum memory consumption required in
the distributed application architecture.
o This led to the development of COM+.
Q8M1 – SC Dudy Fathan Ali S.Kom
COM+ Services
Distributed Application Development
o COM+ provides various services that enable COM developers to develop
scalable and robust distributed applications.
o Some of the COM+ services are:
o Just-in-time activation
o Role-based security
o Synchronization
o Object pooling
o Transactions
o Queued components
Q8M1 – SC Dudy Fathan Ali S.Kom
COM+ Services (contd.)
Distributed Application Development
o The just-in-time (JIT) activation service:
o Enables optimum use of server resources.
o Can be implemented in a COM+ serviced component, as shown in
the following code snippet:
[JustInTimeActivation]
public class MyClass : ServicedComponent
{
//class body
}
Q8M1 – SC Dudy Fathan Ali S.Kom
COM+ Services (contd.)
Distributed Application Development
o The role-based security service:
o Is used to secure distributed applications.
o Provides role-based access to the components.
o Can be implemented in a COM+ serviced component, as shown in
the following code snippet:
[SecurityRole("Manager", SetEveryoneAccess=false)]
public class MyClass : ServicedComponent
{
//class body
}
Q8M1 – SC Dudy Fathan Ali S.Kom
COM+ Services (contd.)
Distributed Application Development
o The synchronization service:
o Enables you to manage multiple client applications accessing a
COM+ serviced component, simultaneously.
o Prohibits more than one application to access a component at a
particular point in time.
o Can be implemented in a COM+ serviced component, as shown in
the following code snippet:
[Synchronization(SynchronizationOption.Required)]
public class MyClass : ServicedComponent
{
//class body
}
Q8M1 – SC Dudy Fathan Ali S.Kom
COM+ Services (contd.)
Distributed Application Development
o A transaction:
o Enables a component to maintain data integrity and consistency by
grouping various related operations as an atomic unit.
o Is successful only when all the operations contained in the atomic
unit are completed successfully.
o Can be implemented in a COM+ serviced component, as shown in
the following code snippet:
[Transaction(TransactionOption.Required)]
public class MyClass : ServicedComponent
{
//class body
}
Q8M1 – SC Dudy Fathan Ali S.Kom
COM+ Services (contd.)
Distributed Application Development
o Message queuing service:
o Enables a client to send a message to a COM+ serviced component
even if the component is not available due to network connectivity.
o Can be implemented in a COM+ serviced component, as shown in
the following code snippet:
[assembly: ApplicationQueuing(Enabled = true,
QueueListenerEnabled = true)]
namespace MyComponent
{
public class Class1:ServicedComponent
{
//class body
}
}
Q8M1 – SC Dudy Fathan Ali S.Kom
Creating COM+ Serviced Components
Distributed Application Development
o Components that use COM+ services are called COM+ serviced
components.
o COM+ serviced components are derived from the .NET base class
ServicedComponent present in the System.EnterpriseServices
namespace.
o To implement COM+ services in a .NET component, you need to:
o Configure the component.
o Register the component.
Q8M1 – SC Dudy Fathan Ali S.Kom
Configuring a .NET Component
Distributed Application Development
o To implement COM+ services in a .NET component, you need to inherit
the ServicedComponent class present in the
System.EnterpriseServices namespace, as shown in the
following code snippet:
using System.EnterpriseServices;
namespace MyComponent
{
public class MyComponentClass:ServicedComponent
{
//class body
}
}
Q8M1 – SC Dudy Fathan Ali S.Kom
Registering a .NET Component
Distributed Application Development
o To enable a client application to access a COM+ serviced component,
you need to register it in the Component Services tool.
o You can register a component in the Component Services tool by using
any one of the following ways:
o Manual registration
o Programmatic registration
o Dynamic registration
Q8M1 – SC Dudy Fathan Ali S.Kom
Summary
Distributed Application Development
o In this session, you learned that:
o COM+ is a programming model that provides a number of features
such as security, queuing, and transactions.
o A component that implements the services provided by COM+ is
known as a COM+ serviced component.
o Some of the services provided by COM+ are:
o Just-in-time activation
o Role-based security
o Synchronization
o Object pooling
o Transactions
o Queued components
Q8M1 – SC Dudy Fathan Ali S.Kom
Summary
Distributed Application Development
o COM+ serviced components are derived from the .NET base class,
ServicedComponent present in the System.EnterpriseServices
namespace.
o The three ways in which a COM+ serviced component can be registered
are:
o Manual registration
o Programmatic registration
o Dynamic registration
o The COM+ serviced components that are related to each other and
perform similar functions can be stored in a COM+ application.
Q8M1 – SC Dudy Fathan Ali S.Kom
Summary
Distributed Application Development
o The various types of COM+ applications are:
o Library applications
o Server applications
o Application proxies
o COM+ preinstalled applications
Exercise (contd.)
Q8M1 – SC Dudy Fathan Ali S.Kom
o Sam, a manager at Imperial Bank, is constantly required to calculate the
interest amounts for the loans acquired by their customers. The bank
has the following schemes to grant loan to the customers:
o A five-year scheme with 5% rate of interest.
o A three-year scheme with 10% rate of interest.
o A two-year scheme with 15% rate of interest.
o You, as a software developer, need to create a COM+ serviced
component that calculates the interest and the total amount to be paid
by the customer at the end of the loan duration.
Exercise (contd.)
Q8M1 – SC Dudy Fathan Ali S.Kom
o In addition, you need to create a client application that uses the COM+
serviced component. The client application should accept the customer
name, the loan amount, and the number of years and display the total
amount to be paid by the customer at the end of the period.
o To calculate the interest and the total amount by using a COM+ serviced
component and to display the amount by using a client application, you
need to perform the following tasks:
o Create a COM+ serviced component.
o Register the COM+ serviced component.
o Create a client application.
o Execute and verify the client application.
Exercise (contd.)
Q8M1 – SC Dudy Fathan Ali S.Kom
bit.ly/4sc1-repo
Upload your answers in .rar extension to:
Q8M1 – SC Dudy Fathan Ali S.Kom
Thank You!
Dudy Fathan Ali, S.Kom
dudy.fathan@eng.ui.ac.id

More Related Content

PPTX
Review Materi ASP.NET
PDF
Distributed Application Development (Introduction)
PPTX
COM+ & MSMQ
PPTX
ASP.Net Technologies Part-2
PPS
Asp.net new
PPTX
ASP.Net Technologies Part-1
PPTX
Vb6 vs vb.net....(visual basic) presentation
DOCX
Vb.net class notes
Review Materi ASP.NET
Distributed Application Development (Introduction)
COM+ & MSMQ
ASP.Net Technologies Part-2
Asp.net new
ASP.Net Technologies Part-1
Vb6 vs vb.net....(visual basic) presentation
Vb.net class notes

What's hot (20)

PPT
.Net framework
PPTX
Visual Studio 2010 and .NET Framework 4.0 Overview
PPT
.Net overview|Introduction Of .net
PPT
Architecture of net framework
PPTX
PPTX
Dot net-interview-questions-and-answers part i
PDF
Dot net-interview-questions-and-answers part i
PPTX
Common language runtime clr
PPTX
Introduction to vb.net
PPTX
Introduction to .net
PDF
BCA IPU VB.NET UNIT-I
PPTX
.Net framework
PPT
Net framework
PPTX
.Net Framework
PPTX
6.origins genesis of .net technology
PPT
.net framework
PPT
Microsoft.Net
PDF
PPT
.NET Framework Overview
.Net framework
Visual Studio 2010 and .NET Framework 4.0 Overview
.Net overview|Introduction Of .net
Architecture of net framework
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
Common language runtime clr
Introduction to vb.net
Introduction to .net
BCA IPU VB.NET UNIT-I
.Net framework
Net framework
.Net Framework
6.origins genesis of .net technology
.net framework
Microsoft.Net
.NET Framework Overview
Ad

Similar to Understanding COM+ (20)

PDF
Buy ebook COM and NET Component Services 1st Edition Juval Löwy cheap price
PDF
(Ebook) COM and .NET Component Services by Juval Löwy ISBN 9780596001032, 059...
PDF
COM and NET Component Services 1st Edition Juval Löwy
PDF
COM and NET Component Services 1st Edition Juval Löwy
PPTX
Web services & com+ components
PDF
Component Object Model (COM, DCOM, COM+)
PPT
Designingapplswithnet
PPT
Presentation On Com Dcom
PPT
.Net Enterprise Services and their Implementations
PPTX
Seminar - Scalable Enterprise Application Development Using DDD and CQRS
PPT
BIS and COM in Action
PDF
70-494 it examen braindumps
PDF
C# .NET Developer Portfolio
PPTX
API Design - developing for developers
DOC
Prashant Patel
PDF
WCF Multi Layer Services Development with Entity Framework 4th Edition Editio...
DOCX
i need this done in one hourQ1. I.docx
PPTX
Real World API Design Using The Entity Framework Services
PDF
CQRS and event sourcing
DOCX
Actively looking for an opportunity to work as a challenging Dot Net Developer
Buy ebook COM and NET Component Services 1st Edition Juval Löwy cheap price
(Ebook) COM and .NET Component Services by Juval Löwy ISBN 9780596001032, 059...
COM and NET Component Services 1st Edition Juval Löwy
COM and NET Component Services 1st Edition Juval Löwy
Web services & com+ components
Component Object Model (COM, DCOM, COM+)
Designingapplswithnet
Presentation On Com Dcom
.Net Enterprise Services and their Implementations
Seminar - Scalable Enterprise Application Development Using DDD and CQRS
BIS and COM in Action
70-494 it examen braindumps
C# .NET Developer Portfolio
API Design - developing for developers
Prashant Patel
WCF Multi Layer Services Development with Entity Framework 4th Edition Editio...
i need this done in one hourQ1. I.docx
Real World API Design Using The Entity Framework Services
CQRS and event sourcing
Actively looking for an opportunity to work as a challenging Dot Net Developer
Ad

More from Dudy Ali (20)

PPTX
Java CRUD Mechanism with SQL Server Database
PPTX
Network Socket Programming with JAVA
PPTX
XML Schema Part 2
PPTX
XML Schema Part 1
PPTX
Rendering XML Document
PPTX
Pengantar XML
PPTX
Pengantar XML DOM
PPTX
Pengantar ADO.NET
PPTX
Database Connectivity with JDBC
PPTX
XML - Displaying Data ith XSLT
PPTX
Algorithm & Data Structure - Algoritma Pengurutan
PPTX
Algorithm & Data Structure - Pengantar
PPTX
Object Oriented Programming - Value Types & Reference Types
PPTX
Object Oriented Programming - Inheritance
PPTX
Object Oriented Programming - File Input & Output
PPTX
Object Oriented Programming - Constructors & Destructors
PPTX
Object Oriented Programming - Abstraction & Encapsulation
PPTX
Web Programming Syaria - Pengenalan Halaman Web
PPTX
Web Programming Syaria - PHP
PPTX
Software Project Management - Project Management Knowledge
Java CRUD Mechanism with SQL Server Database
Network Socket Programming with JAVA
XML Schema Part 2
XML Schema Part 1
Rendering XML Document
Pengantar XML
Pengantar XML DOM
Pengantar ADO.NET
Database Connectivity with JDBC
XML - Displaying Data ith XSLT
Algorithm & Data Structure - Algoritma Pengurutan
Algorithm & Data Structure - Pengantar
Object Oriented Programming - Value Types & Reference Types
Object Oriented Programming - Inheritance
Object Oriented Programming - File Input & Output
Object Oriented Programming - Constructors & Destructors
Object Oriented Programming - Abstraction & Encapsulation
Web Programming Syaria - Pengenalan Halaman Web
Web Programming Syaria - PHP
Software Project Management - Project Management Knowledge

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Encapsulation theory and applications.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
DOCX
The AUB Centre for AI in Media Proposal.docx
 
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
 
PPTX
Cloud computing and distributed systems.
PPTX
sap open course for s4hana steps from ECC to s4
PDF
KodekX | Application Modernization Development
 
PDF
Network Security Unit 5.pdf for BCA BBA.
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
NewMind AI Weekly Chronicles - August'25 Week I
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
Encapsulation theory and applications.pdf
cuic standard and advanced reporting.pdf
Encapsulation_ Review paper, used for researhc scholars
Reach Out and Touch Someone: Haptics and Empathic Computing
Advanced methodologies resolving dimensionality complications for autism neur...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The AUB Centre for AI in Media Proposal.docx
 
The Rise and Fall of 3GPP – Time for a Sabbatical?
 
Cloud computing and distributed systems.
sap open course for s4hana steps from ECC to s4
KodekX | Application Modernization Development
 
Network Security Unit 5.pdf for BCA BBA.

Understanding COM+

  • 1. Q8M1 – SC Dudy Fathan Ali S.Kom Distributed Application Development Q8M1 Dudy Fathan Ali, S.Kom (DFA) 2017 CEP - CCIT Fakultas Teknik Universitas Indonesia
  • 2. Additional Documents Q8M1 – SC Dudy Fathan Ali S.Kom bit.ly/4sc1-repo Download this Powerpoint Slide:
  • 3. Objectives Q8M1 – SC Dudy Fathan Ali S.Kom Identify COM+ Create COM+ serviced components Explore COM+ applications
  • 4. Q8M1 – SC Dudy Fathan Ali S.Kom Introducing COM+ Distributed Application Development o Earlier distributed applications were based on DCOM. o DCOM-based applications do not provide features such as secure communication and reliable data transfer. o To include such features in the distributed applications, you need to implement COM+.
  • 5. Q8M1 – SC Dudy Fathan Ali S.Kom Evolution of COM+ Distributed Application Development o Single-tier applications do not provide code reusability. o COM was introduced to provide code reusability. o COM had the following limitations: o It does not allow a client application residing on a separate computer to access a component. o It does not provide features such as security and consistency of data. o These limitations led to the development of DCOM.
  • 6. Q8M1 – SC Dudy Fathan Ali S.Kom Evolution of COM+ (contd.) Distributed Application Development o DCOM: o Allows developers to create a component that can be accessed by a client application residing on a separate computer. o Provides features such as security and platform independence that are required in the distributed application architecture. o DCOM does not provide features such as reliable data transfer, enhanced performance, and optimum memory consumption required in the distributed application architecture. o This led to the development of COM+.
  • 7. Q8M1 – SC Dudy Fathan Ali S.Kom COM+ Services Distributed Application Development o COM+ provides various services that enable COM developers to develop scalable and robust distributed applications. o Some of the COM+ services are: o Just-in-time activation o Role-based security o Synchronization o Object pooling o Transactions o Queued components
  • 8. Q8M1 – SC Dudy Fathan Ali S.Kom COM+ Services (contd.) Distributed Application Development o The just-in-time (JIT) activation service: o Enables optimum use of server resources. o Can be implemented in a COM+ serviced component, as shown in the following code snippet: [JustInTimeActivation] public class MyClass : ServicedComponent { //class body }
  • 9. Q8M1 – SC Dudy Fathan Ali S.Kom COM+ Services (contd.) Distributed Application Development o The role-based security service: o Is used to secure distributed applications. o Provides role-based access to the components. o Can be implemented in a COM+ serviced component, as shown in the following code snippet: [SecurityRole("Manager", SetEveryoneAccess=false)] public class MyClass : ServicedComponent { //class body }
  • 10. Q8M1 – SC Dudy Fathan Ali S.Kom COM+ Services (contd.) Distributed Application Development o The synchronization service: o Enables you to manage multiple client applications accessing a COM+ serviced component, simultaneously. o Prohibits more than one application to access a component at a particular point in time. o Can be implemented in a COM+ serviced component, as shown in the following code snippet: [Synchronization(SynchronizationOption.Required)] public class MyClass : ServicedComponent { //class body }
  • 11. Q8M1 – SC Dudy Fathan Ali S.Kom COM+ Services (contd.) Distributed Application Development o A transaction: o Enables a component to maintain data integrity and consistency by grouping various related operations as an atomic unit. o Is successful only when all the operations contained in the atomic unit are completed successfully. o Can be implemented in a COM+ serviced component, as shown in the following code snippet: [Transaction(TransactionOption.Required)] public class MyClass : ServicedComponent { //class body }
  • 12. Q8M1 – SC Dudy Fathan Ali S.Kom COM+ Services (contd.) Distributed Application Development o Message queuing service: o Enables a client to send a message to a COM+ serviced component even if the component is not available due to network connectivity. o Can be implemented in a COM+ serviced component, as shown in the following code snippet: [assembly: ApplicationQueuing(Enabled = true, QueueListenerEnabled = true)] namespace MyComponent { public class Class1:ServicedComponent { //class body } }
  • 13. Q8M1 – SC Dudy Fathan Ali S.Kom Creating COM+ Serviced Components Distributed Application Development o Components that use COM+ services are called COM+ serviced components. o COM+ serviced components are derived from the .NET base class ServicedComponent present in the System.EnterpriseServices namespace. o To implement COM+ services in a .NET component, you need to: o Configure the component. o Register the component.
  • 14. Q8M1 – SC Dudy Fathan Ali S.Kom Configuring a .NET Component Distributed Application Development o To implement COM+ services in a .NET component, you need to inherit the ServicedComponent class present in the System.EnterpriseServices namespace, as shown in the following code snippet: using System.EnterpriseServices; namespace MyComponent { public class MyComponentClass:ServicedComponent { //class body } }
  • 15. Q8M1 – SC Dudy Fathan Ali S.Kom Registering a .NET Component Distributed Application Development o To enable a client application to access a COM+ serviced component, you need to register it in the Component Services tool. o You can register a component in the Component Services tool by using any one of the following ways: o Manual registration o Programmatic registration o Dynamic registration
  • 16. Q8M1 – SC Dudy Fathan Ali S.Kom Summary Distributed Application Development o In this session, you learned that: o COM+ is a programming model that provides a number of features such as security, queuing, and transactions. o A component that implements the services provided by COM+ is known as a COM+ serviced component. o Some of the services provided by COM+ are: o Just-in-time activation o Role-based security o Synchronization o Object pooling o Transactions o Queued components
  • 17. Q8M1 – SC Dudy Fathan Ali S.Kom Summary Distributed Application Development o COM+ serviced components are derived from the .NET base class, ServicedComponent present in the System.EnterpriseServices namespace. o The three ways in which a COM+ serviced component can be registered are: o Manual registration o Programmatic registration o Dynamic registration o The COM+ serviced components that are related to each other and perform similar functions can be stored in a COM+ application.
  • 18. Q8M1 – SC Dudy Fathan Ali S.Kom Summary Distributed Application Development o The various types of COM+ applications are: o Library applications o Server applications o Application proxies o COM+ preinstalled applications
  • 19. Exercise (contd.) Q8M1 – SC Dudy Fathan Ali S.Kom o Sam, a manager at Imperial Bank, is constantly required to calculate the interest amounts for the loans acquired by their customers. The bank has the following schemes to grant loan to the customers: o A five-year scheme with 5% rate of interest. o A three-year scheme with 10% rate of interest. o A two-year scheme with 15% rate of interest. o You, as a software developer, need to create a COM+ serviced component that calculates the interest and the total amount to be paid by the customer at the end of the loan duration.
  • 20. Exercise (contd.) Q8M1 – SC Dudy Fathan Ali S.Kom o In addition, you need to create a client application that uses the COM+ serviced component. The client application should accept the customer name, the loan amount, and the number of years and display the total amount to be paid by the customer at the end of the period. o To calculate the interest and the total amount by using a COM+ serviced component and to display the amount by using a client application, you need to perform the following tasks: o Create a COM+ serviced component. o Register the COM+ serviced component. o Create a client application. o Execute and verify the client application.
  • 21. Exercise (contd.) Q8M1 – SC Dudy Fathan Ali S.Kom bit.ly/4sc1-repo Upload your answers in .rar extension to:
  • 22. Q8M1 – SC Dudy Fathan Ali S.Kom Thank You! Dudy Fathan Ali, S.Kom dudy.fathan@eng.ui.ac.id