Creating and configuring connection factories and destinations for a JMS application

CICS® Java programs can create and configure connection factories and destinations.

The following approaches can be used to create and configure the WebSphere® MQ implementations of connection factories and destinations:
  • Using JNDI to retrieve administered objects
  • Using the IBM® JMS extensions
  • Using the WebSphere MQ JMS extensions

Most users of JMS use a JNDI repository to locate a pre-configured set of connection factories and destinations. CICS does not provide a JNDI implementation, and the use of LDAP is not possible in an OSGi environment.

For details of the available options, and an example of how to register an initial context factory and the WebSphere MQ object factories with OSGi using the start method of a bundle adaptor, see Creating and configuring connection factories and destinations in the WebSphere MQ Version 8 product documentation.

CICS connections to WebSphere MQ are policed using the user ID of the CICS address space. Resource access is policed by the transaction user ID. Creating a connection to WebSphere MQ from CICS and specifying a user ID and password is therefore not supported.