Category Archive for: Enterprise Services

Integrating WCF and Enterprise Services

Windows Communication Foundation (WCF) is a new communication technology that is part of .NET Framework 3.0. WCF is covered in detail in Chapter 42, “Windows Communication Foundation.” .NET Enterprise Services offers a great integration model with WCF. WCF Service Facade Adding a WCF facade to an Enterprise Services application allows using WCF clients to access the serviced components.…

Read More →

Sample Application

This sample application simulates a simplified scenario that writes new orders to the Northwind sample database. As shown in Figure 44-7, multiple components are used with the COM+ application. The class OrderControl is called from the client application to create new orders, OrderControl uses the OrderData component OrderData has the responsibility of creating a new entry in the…

Read More →

Transactions

Automatic transactions are the most frequently used feature of Enterprise Services. Using Enterprise Services, you can mark the components as requiring a transaction, and the transaction is then created from the COM+ runtime. All transaction-aware objects inside the component, such as ASP.NET connections, run inside the transaction. You can read more about the concepts of transactions in Chapter…

Read More →

Client Application

After building the serviced component library, you can create a client application. This can be as simple as a C# console application. After you’ve created the project for the client, you have to reference both the assembly from the serviced component, SimpleServer, and the assembly System. EnterpriseServices. Then you can write the code to instantiate a new_simpleComponent instance and…

Read More →

Creating a Simple COM+ Application

To create a .NET class that can be configured with Enterprise Services, you have to reference the assembly System. Enterprise Services and add the namespace System. Enterprise Services to the using declarations. The most important class to use is ServicedComponent. The first example shows the basic requirements to create a serviced component. You start by creating a C#…

Read More →

Enterprise Services

Enterprise Services is the name of the Microsoft application server technology that offers services for distributed solutions. Enterprise Services is based on the COM+ technology that has already been in use for many years. However, instead of wrapping .NET objects as COM objects to use these services, .NET offers extensions for .NET components to take direct  advantage of…

Read More →

Back to Top