The
CICSConnectionFactoryPublish program:
- Gets the initial JNDI context of the CICS region.
- Checks to see if a ConnectionFactory subContext exists in the
context structure.
- If the ConnectionFactory subContext does not exist, creates
it.
- 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:
- The name of the connection factory.
- The JNDI subContext.
- If the linked-to server program is remote, the name of the mirror transaction
under which the program runs on the remote region. However, the recommended
way to specify the mirror program is on the local PROGRAM definition of the
server program.
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.