You can change the transport type that a JMS client uses to connect to a JMS provider.
You 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
- 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.
- In the Content view, right-click the connection factory,
then click Switch Transport.
- Click the available transport type:
- If you are using IBM® 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. Real-time transport is not available in IBM MQ 8.0. If you are using IBM MQ 8.0 you can define Real-time transport, but it fails when
an attempt is made to create a connection.
- 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.