Changing the transport type used for connections

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:

Procedure

  1. In the Navigator view, click the Connection Factories folder that contains the connection factory for which you 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 you are using WebSphere® MQ as the messaging provider, click either Bindings or Client.
    • If you are using Real-time transport as the messaging provider, click either Direct or Direct HTTP.
  4. Check whether you need to change any properties and settings that are required by the new transport type; for example, if you are changing from Bindings to Client, you need to 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.