This section gets you started quickly with a simple ActiveX™ component (Account). You then install, run, and monitor Account with the Microsoft Transaction Server (MTS) Explorer and a sample client (Bank).
Scenario: Creating and Using a Simple ActiveX Component First, create your component (Account) and run it in the MTS run-time environment by using the Bank client. Then, add a database connection to Account and run it again. |
|
Creating the Account Component Create a new ActiveX component, Account. |
|
Creating the Bank Package Use the MTS Explorer to create a new package for your component. |
|
Installing the Account Component in the Bank Package Use the MTS Explorer to install your component in a package. |
|
Running and Monitoring the Account Component Use the Bank client to run your component, and use the MTS Explorer to monitor it. |
|
Modifying the Account Component: Add a Database Connection Modify your component so that it connects to a database. The connection will be pooled by the ODBC resource dispenser. Then use the Bank client to re-run the modified component. |
|
Application Design Notes: Sharing Resources Learn how to efficiently share resources, such as database connections, through the MTS Resource Dispenser Manager and resource dispensers. |
See Also
Programming Concepts, Transaction Server Components, Building Scalable Components