To create object references, you need to publish the beans that are installed
in your CICS region. You can do this in two ways:
- Issue PERFORM DJAR(XXXX) PUBLISH on the server CICS system. You can use
any of the following methods to do this:
- CEMT
- CICSPlex SM
- A CICS application
For each bean installed from the named DJAR, an object reference is
published to the naming
directory server. See Defining name servers for information about using name
servers.
- If you have installed a number of DJARs into a single CORBASERVER, you
can use the PERFORM CORBASERVER(XXXX) PUBLISH command to publish every bean
currently installed under that CORBASERVER. The subcontext in the namespace
where the object references for the beans will appear is determined by the
JNDI prefix defined in the resource definition of the CORBASERVER into which
the DJAR was installed.
Retraction is never done implicitly. The recommended way to 'unpublish'
beans is to issue PERFORM DJAR(XXXX)/CORBASERVER(XXXX) RETRACT. If a DJAR
or CORBASERVER is simply discarded, the bean object references will still
exist in the namespace, although they will be unusable by a client since the
actual beans no longer exist in CICS. It is possible to reinstall a DJAR and
retract those references.