Previous Topic: Option 1: Change Your Model and GenerateNext Topic: Execute the Application


Option 2: Modify COMMCFG.PROPERTIES

CA Gen EJB Servers can be redirected to CA C and COBOL Servers by override the cooperative flow information generated in the server. The COMMCFG.PROPERTIES file can be read at run time to direct the EJB server to send the cooperative flow to another system. Note that the COMMCFG.PROPERTIES file will only use accessible o the EJB servers when it is included in the EAR file. The COMMCFG.PROPERTIES is placed in the EAR file only when the option Include optional runtime property files with runtime is selected.

Follow these steps:

  1. Locate the COMMCFG.PROPERTIES file under the CA Gen directory.
  2. In the editor of your choice, open the file COMMCFG.PROPERTIES
    write commcfg.properties
    
  3. Create an entry for the trancode(s) to be redirected to the CA Gen-generated C or COBOL servers:
    <trancode> = TCP <host> <service/port>
    

    where <host> can be in IPv4 or IPv6 format.

  4. Reassemble and redeploy the application. Ensure that the option Include optional runtime property files with runtime is selected.