You can configure IBM WebSphere MQ connections using either the local or remote MQ server. The MQJMS configuration uses the MQJMS bridge to connect the MQ queue configured for the RepConnector connection.
RepConnector supports MQ messaging and the queue connection of the JMS bridge for IBM WebSphere MQ messaging system.
Setting the environment for MQ and MQJMS
You can use the WebSphere MQ Explorer to configure the MQ messaging system.
If no queue manager is available for your application, create a new one.
To create a new target queue, go to the <queue manager>/Queues folder and enter the queue name.
To configure the new queue, use the MQ Explorer to set its properties.
To create a new channel, go to the <queue manager>/Advanced/Channels folder.
To configure the channel for the server connection, set the properties with the MQ Explorer.
To connect to the remote MQ daemon from your local RepConnector connection, set the MQSERVER environment variable in $REPRA_HOME/bin/repra_env.sh on UNIX or %REPRA_HOME%\bin\repra_env.bat on Windows.
MQSERVER=<Channel_name>/TCP/’<hostname>(<port_number>)’
where:
channel_name is the name of the channel that you have defined for your server connection.
hostname is the name of the machine where your IBM WebSphere MQ Server is running.
Port_number is the port number that the IBM WebSphere MQ Queue Manager is listening on.
For example, on UNIX, enter:
MQSERVER=CHANNEL1/TCP/'remotehostname(1414)' export MQSERVER
On Windows:
SET MQSERVER=CHANNEL1/TCP/'remotehostname(1414)'
Example values for IBM messaging are available in configuration files located in the RepConnector installation directory, <AppServer>\repra\samples\conf. For more information, see the user documentation for IBM WebSphere MQ.