The Contract Repository is a database containing BEA TUXEDO client/server interface contracts. The Contract Repository can be shared among developers using BEA Builder products. In this case, both C++ Expert users and Active Expert users can access the same repository.
After you have logged on to the Contract Repository, the C++ Expert window displays:
You can browse through the contents of the Contract Repository and generate sample application code for modules you select.
Note:
The Contract Repository is the source of the modules, interfaces, and operations that represent BEA TUXEDO service interface information-if the item is not in the Contract Repository, you cannot access it from the C++ Expert.
You cannot use C++ Expert to edit or change the objects in the Contract Repository. If you need to add, remove, or otherwise make changes to the Contract Repository objects, you must use the BEA TUXEDO Builder Contract Repository Editor product. For more information on working with the Contract Repository, refer to the BEA TUXEDO Builder Contract Repository Online Help (see Where to Find Related Information).
You can reload the modules from the Contract Repository database at any time to ensure that the objects showing in your local view have the same definitions as the objects in the repository. For example, when someone uses the Contract Repository Editor to add, remove, or modify a module, interface, operation or parameter your local view of these objects does not reflect this change automatically. You must refresh your local view when this occurs.
To refresh the Contract Repository view, choose File->Refresh from the main menu, click the Refresh button on the toolbar, or press Ctrl+R. If any changes have been made to the Contract Repository, these changes will now be reflected in your Contract Repository tree view.
The objects available in the Contract Repository are displayed in a tree view that allows you to browse through Contract Repository items by clicking on a node. The node expands the visible objects to show any sublevels. The Contract Repository tree view supports multiple selection of nodes.
Figure 2-1 shows the C++ Expert Main Window including its view of the Contract Repository tree. Table 2-1 describes the tree objects at each node level.
How Do I Modify Contract Repository Services?
Refreshing the Contract Repository View
Contract Repository Tree View
Figure 2-1 C++ Expert Main Window
The Attribute Detail panel is located on the upper right panel of the Main Window and provides detailed information about the Contract Repository objects. The Sample Application Code panel displays sample code generated when an object is selected in the Contract Repository Tree View.
The following table describes what is displayed for each Contract Repository item.
.
Attribute and Sample Application Code Panels
The Sample Application Code panel at the bottom of the Main Window shows the sample code generated for the single object selected in the Tree View.
You can specify sample code options that control how the sample code is generated, and specify if transaction object code is generated. Advanced sample code options let you specify variable naming schemes. For information on setting sample code values, refer to help on Sample Code Settings and Parameter Name Prefix panel.
You can view sample code for an object in four different communication modes: Synchronous, Asynchronous, Forward, and Queue, corresponding to the types of service requests. As objects are selected in the C++ Expert GUI, sample code will be displayed. To view sample code for each communication mode, click on the tab at the bottom of the Sample Application Code window.
Sample Code
Sample Code Declarations and Usage
There are two ways to copy sample code:
Copying Sample Code