Registering the COM+ .dll

A new COM+ dll (OneWorldinterfaceTx.dll) is provided to be used along with the COM connector to participate in a two-phase commit. OneWorldInterfaceTx.dll must be registered with the COM+ component services.

Use these steps to register OneWorldInterfaceTx.dll:

  1. On the PC, navigate to COM+ Applications:

    Control Panel > Administrative Tools > Component Services

  2. Expand these buttons and folders:

    Component Services > Computers > My Computer

  3. Select COM+ Applications.

  4. Right-click COM+ Applications, select New, and then select Application.

    The COM Application Install Wizard appears.

  5. On Install or Create a New Application, select Create an empty application and then click Next.

  6. On Create Empty Application, enter the name of the application (OneWorldInterfaceTx) that you are registering.

  7. Select an Activation type, and then press Next.

  8. On Set Application Identity, select Interactive User, and then click Next.

  9. Click Finish to close the wizard.

  10. On the PC, expand these folders:

    COM+ Applications > OneWorldInterfaceTx

  11. Select Components.

  12. Right-click Components, select New, and then select Component.

  13. The COM Component Install Wizard appears.

  14. On Import or Install a Component, select Install New Component(s), and then click Next.

  15. On Select New Files to Install, browse to the application (OneWorldInterfaceTx.dll) on the client install directory or the COM interoperability server.

  16. Add the application and then click Next.

  17. Click Finish to close the wizard.

    The application (OneWorldInterfaceTx.dll) is registered.

  18. On the PC, expand the Components folder and then right-click the application (OneWorldInterfaceTx.dll) you just registered.

  19. Select Properties.

  20. On OneWorldInterfaceTx Properties, click the Transactions tab.

  21. For the Transaction support field, select the Required option.

  22. Click OK.

  23. Close the component servers.

The COM connector should be registered using the method described in the chapter titled Installing COM Connector on a Non-JD Edwards EnterpriseOne Client Environment.

The SalesOrderEntry and other wrapper dlls should be registered using the standard RegSvr32 command.

A new transactional object that is going to participate in the COM+ transactions (for example, SOEClass2.dll) must be created and registered through the COM+ component services of the administrative tools. The transactions property of this object should be set to Required. This transactional object will use the new OneWorldInterfaceTx.dll for starting a transaction, executing a business function, and so on. The code outline is explained in Case1: JD Edwards EnterpriseOne Participates in COM+ Transaction. Detail sample code for the SalesOrderEntry transaction object (SOETxObject) is provided.

After the transactional object is created, open a new VB sample SalesOrderEntry client and call the SOEClass2 object. The VB SOETxClient code is provided.

Two cases of the Sales Order Entry application are discussed. Case 1 is when JD Edwards EnterpriseOne participates in the COM+ transaction. Case 2 is when JD Edwards EnterpriseOne participates in a distributed transaction.