Change the transport type used for connections

We can change the transport type that a JMS client uses to connect to a JMS provider. We might also need to change any properties and settings that are required by the new transport type.


About this task

A JMS client (a Java application that uses the JMS API) uses a connection factory to create a connection with the JMS provider. The messaging provider that is used as the JMS provider determines which types of transport are available to use for the connection.

To change the transport used by the JMS client to connect to the JMS provider, complete the following steps.


Procedure

  1. In the Navigator view, click the Connection Factories folder that contains the connection factory for which we want to change the transport type. The connection factory is displayed in the Content view.
  2. In the Content view, right-click the connection factory, then click Switch Transport.
  3. Click the available transport type:

    • If we are using IBM MQ as the messaging provider, click either Bindings or Client.
    • If we are using Real-time transport as the messaging provider, click either Direct or Direct HTTP. Real-time transport is not available in IBM MQ Version 8.0. If we are using IBM MQ Version 8.0 we can define Real-time transport, but it fails when an attempt is made to create a connection.

  4. Check whether we need to change any properties and settings that are required by the new transport type; for example, if we are changing from Bindings to Client, set up the client connection if you have not done so already.


Results

The next time that a connection factory creates a connection for the JMS client, the connection uses the new type of transport.

Parent topic: Create and configure JMS administered objects


Related concepts


Related tasks