Running the program

To publish (bind) a ConnectionFactory suitable for use with the CCI Connector for CICS® TS to the CICS JNDI name server, run transaction CCPB. Unless you have changed the CICSConnectionFactoryPublish program, the ConnectionFactory will be named CICSConnectionFactory, and will be published to subContext ConnectionFactory in the JNDI server's name space.

The following message appears on your screen:
ccpb - ConnectionFactory published to JNDI successfully.
Note: If a ConnectionFactory with the same name and subContext has already been published to the JNDI server (and not retracted), a different message appears:
ccpb - The ConnectionFactory is already published to JNDI.
Assuming that the connection factory is published successfully, the following output is sent to stdout:
Figure 1. Stdout output from transaction CCPB to publish a ConnectionFactory with default name and subContext
****************************************************************************************************
**** CICSConnectionFactoryPublish: Started
**** CICSConnectionFactoryPublish: Binding ConnectionFactory ConnectionFactory/CICSConnectionFactory
**** CICSConnectionFactoryPublish: ConnectionFactory bound to JNDI
**** CICSConnectionFactoryPublish: Ended
****************************************************************************************************

It is not recommended that you run CICSConnectionFactoryPublish as a PLTPI program, or link to it from a PLTPI program. This is because, if a JVM is not available, CICS startup time will be lengthened.