The Workstation view shows the local modules, if any, previously registered on the workstation in a hierarchical tree. If you have not yet registered any modules to your workstation, this view is empty.
To open the local workstation view, choose File->Open Workstation from the menu bar or click on the workstation toolbar button.
To register an object on the local workstation you must have both the Repository and Workstation views open. Select the object on the Repository panel, and choose from the menu bar Workstation->Add Module or Workstation->Add Interface, respectively.
To remove an object from the local registry, select the object on the Workstation panel, and choose Workstation->Remove from the menu bar.
The Workstation view consists of the two panels (Object Tree and Sample Code panels) and two view modes (synchronous and asynchronous). These features are discussed below.
In synchronous mode, the requestor (in this case, the operation) waits for a reply from the server in the form of an output parameter. On the Workstation Objects window, synchronous services are shown with input and output parameters. Synchronous objects are the default Workstation view. (Figure 2-1 shows the workstation objects in synchronous mode.)
When calling a TUXEDO service asynchronously, an asynchronous operation contains only input parameters but no output parameters-instead, the information comes back as output parameters of the reply object operation. As shown on the Workstation Objects window, asynchronous operations are named differently (the suffix
Caution:
The naming conventions you use for operations (also known as services) can affect asynchronous mode. Do not include underscore characters in operation names that you want to call in asynchronous mode. Async mode does not work properly if the operation name includes an underscore.
Async
is attached to the operation name) and the output parameters are returned in the operation reply objects. Notice that the sample code for an asynchronous operation contains events that indicate the replies. Figure 2-2 shows the workstation objects in asynchronous mode.
Figure 2-2 Workstation Objects in Asynchronous Mode