Using the Microsoft Transaction Server (MTS)

If you design your component to support MTS transactions, you use both the MTS and a client executable to debug your component’s code.

To configure MTS debugging

  1. On the Windows NT Server on which you have MTS installed, shut down the server processes. To do this, right-click My Computer on the Windows NT desktop to display a shortcut menu, and then click Shutdown Server Process.

  2. In the Visual J++ environment, click the Project menu, then click <Project> Properties, where <Project> is the name of your component project.

  3. Click the Launch tab, and then click Custom.

  4. In the Program box, type the path to the MTx.exe. By default, this executable resides in your Windows NT System32 directory.

  5. In the Arguments box, type /p:”MTS Package Name”, where Package Name is the name of the MTS package containing your component. Also, make sure that there are no spaces in this argument.

  6. Set a breakpoint in your component code.

  7. On the Debug menu, click Start.

  8. Manually start the client executable that calls into your component. When the client calls into the section of code in which you’ve set a breakpoint, execution halts, and you can step through your component code.