0% found this document useful (0 votes)
65 views

MQ Settings and Config

This document provides instructions for configuring and using the MQ JMSAdmin tool to view and modify MQ queue connection factory (QCF) properties. It describes creating a configuration file, starting the tool, using commands like DISPLAY and ALTER to see and change QCF settings like the channel name. It also provides steps for putting and getting messages on MQ queues using sample binaries, by setting environment variables and running commands like amqsputc and amqsgetc.

Uploaded by

Marco Del
Copyright
© © All Rights Reserved
0% found this document useful (0 votes)
65 views

MQ Settings and Config

This document provides instructions for configuring and using the MQ JMSAdmin tool to view and modify MQ queue connection factory (QCF) properties. It describes creating a configuration file, starting the tool, using commands like DISPLAY and ALTER to see and change QCF settings like the channel name. It also provides steps for putting and getting messages on MQ queues using sample binaries, by setting environment variables and running commands like amqsputc and amqsgetc.

Uploaded by

Marco Del
Copyright
© © All Rights Reserved
You are on page 1/ 2

MQ Settings/Configuration

MQ JMSAdmin Tool

Create a file (JMSAdmin.config) with the following contents


INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file:///app/domains/dtvgwqa2/MQ-JNDI
SECURITY_AUTHENTICATION=none

Then start the JMSAdmin tool


$ /opt/mqm/java/bin/JMSAdmin -cfg JMSAdmin.config –v

Use Display to see the contents of the bindings.


DISPLAY Q(MQSenderQueue)
DISPLAY Q(MQReceiverQueue)
DISPLAY QCF(MQSenderQCF)
DISPLAY QCF(MQReceiverQCF)

You can use ALTER to alter the properties.

InitCtx> DISPLAY QCF(MQSenderQCF)

ASYNCEXCEPTION(CONNECTIONBROKEN)
CCSID(819)
CHANNEL(SSC_DTV_GW_CLIENT_02)
CLIENTRECONNECTOPTIONS(ASDEF)
CLIENTRECONNECTTIMEOUT(1800)
COMPHDR(NONE )
COMPMSG(NONE )
CONNECTIONNAMELIST(192.168.16.1(1429))
CONNOPT(STANDARD)
FAILIFQUIESCE(YES)
HOSTNAME(192.168.16.1)
LOCALADDRESS()
MAPNAMESTYLE(STANDARD)
MSGBATCHSZ(10)
MSGRETENTION(YES)
POLLINGINT(5000)
PORT(1429)
PROVIDERVERSION(UNSPECIFIED)
QMANAGER(MQDK)
RESCANINT(5000)
SENDCHECKCOUNT(0)
SHARECONVALLOWED(YES)
SSLFIPSREQUIRED(NO)
SSLRESETCOUNT(0)
SYNCPOINTALLGETS(NO)
TARGCLIENTMATCHING(YES)
TEMPMODEL(SYSTEM.DEFAULT.MODEL.QUEUE)
TEMPQPREFIX()
TRANSPORT(CLIENT)
USECONNPOOLING(YES)
USERAUTHMQCSP(NO)
VERSION(7)
WILDCARDFORMAT(TOPIC_ONLY)

For example you can do this.

ALTER QCF(MQSenderQCF) CHANNEL(SSC_DTV_GW_CLIENT_02)


ALTER QCF(MQReceiverQCF) CHANNEL(SSC_DTV_GW_CLIENT_02)

1. Setup the environment variable


a. export MQSERVER=SSC_DTV_GW_CLIENT_02/TCP/'mvsd.rogers.com(1429)'
2. Run this command.
a. . opt/mqm/bin/setmqenv –s
3. The binaries for putting messages on the MQ
a. /opt/mqm/samp/bin
4. Run this command to put a message on the Queue MSC_SR_SERVICE_REQUEST using the Queue
Manager MQDK
a. ./amqsputc MSC_SR_SERVICE_REQUEST MQDH
b. Paste the message you want to send
5. Run this command for getting the messages on the Queue SS_SERVICE_REPLY2 using the Queue
Manager MQDK
a. ./amqsgetc SS_SERVICE_REPLY2 MQDK
b. This is a listener.

You might also like