Publishing a connection factory using CICSConnectionFactoryPublish

The CICSConnectionFactoryPublish program:
  1. Gets the initial JNDI context of the CICS region.
  2. Checks to see if a ConnectionFactory subContext exists in the context structure.
  3. If the ConnectionFactory subContext does not exist, creates it.
  4. If the ConnectionFactory/CICSConnectionFactory connection factory has not already been published (bound) to the name server, publishes it.
The default name of the connection factory, as set by the supplied version of the CICSConnectionFactoryPublish program, is CICSConnectionFactory. The default name of the JNDI subContext in which the connection factory is published is ConnectionFactory. By editing the source code of the CICSConnectionFactoryPublish program, you can change:

For instructions on how to make the changes, see the comments in the source code.

If you change the name of the connection factory, or of the subContext , remember to make the same change in all three of the sample programs.