

Cooperative Flows › CA Gen C to C# Cooperative Flow › Configuration › Configuring the Cooperative Flow › Option 1: Change Your Model and Generate
Option 1: Change Your Model and Generate
During generation, the generated clients know the server they will be using at runtime and the default cooperative flow to use for that server. The cooperative flow information comes from the server properties dialog and server environment parameters dialog.
Follow these steps:
- Open your model. On the main menu bar, select Construction, Packaging or Construction, Generation.
- Open the cooperative packaging diagram by selecting Diagram, Open, Cooperative Code.
- For each server that is generated for the .NET environment:
- Open the server manager properties dialog by either double-clicking the server, select the server and then selecting Details, Properties from the main menu bar or right-clicking the server and selecting Detail, Properties from the pop-up menu.
- In the server manager dialog, select the .NET Remoting tab.
- Enter values in to the HostName and Service (Port) fields. HostName is the TCP/IP hostname where the CA Gen-generated .NET Servers are executing. The Service (Port) is the port number of IIS, which is usually 80. For the best performance the channel type should be Binary.
- Click OK to save your changes.
- With the server manager still selected, open the server environment parameters dialog by either selecting Detail, Server Environment from the main menu bar or right-clicking on the server and selecting Detail, Server Environment from the pop-up menu.
- Set the server Operating System to CLR and Communications to .NET_Remoting.
- Click OK to save your changes.
- After all servers have been configured, generate and build the CA Gen-generated C language clients. The client now contains data that defaults to interoperating with the CA Gen-generated .NET Servers.
- Prior to executing the client, ensure the COMMCFG.INI file does not contain an entry that will override the information generated in the client.
Copyright © 2014 CA.
All rights reserved.
 
|
|