Professional Documents
Culture Documents
Mqintwqns
Mqintwqns
Mqintwqns
Ans: A queue is a data structure used to store messages. A queue manager owns each queue. The
queue manager is responsible for maintaining the queues it owns, and for storing all the messages it
receives onto the appropriate queues
What is the Default max Queue depth?
Ans 5000
Types of Queues?
Local Queue Remote Queues Alias Queues
Model Queue Dynamic Queues Cluster Queues.
Queue: A safe place to store messages for Prior-To-Delivery, it belongs to the Qmgr to which the
application is connected.
Model Queue: Model queue is a template of a queue definition that uses when creating a dynamic queue.
Alias Queue: Queue definition, which is Alias to an actual Local or Remote Q. Used for security and easy
maintenance.
Remote Queue: Object that defines a Queue belongs to another Q Manager (Logical Def).
Initiation Queue: An initiation queue is a local queue to which the queue manager writes a trigger
message when certain conditions are met on another local queue
Dynamic Queue: Such a queue is defined on the fly when the application needs it. Dynamic queues may
be retained by the queue manager or automatically deleted when the application program ends. Use- To
store intermediate results.
Cluster Queue: Custer queue is a local queue that is known throughout a cluster of queue managers.
Reply-To-Queue: A request message must contain the name of the queue into which the responding
program must put the Reply Message.
Queue Manager: Provides Messaging services and manages the Queues, Channels, and Processes that
belongs to it.
Alias Q Manager: Queue-manager aliases, are created using a remote-queue definition with a blank
RNAME.
What are the attributes required for the Remote Queue Definition?
Ans: 1.Name of the Queue 2. Transmission Queue Name.
3. Remote QueueManager name 4. Remote Local Queue Name
What is the Algorithm followed in retrieving the Messages from the Queue?
Ans: 1.First-in-first-out (FIFO).
2.Message priority, as defined in the message descriptor. Messages that have the same priority are
retrieved on a FIFO basis.
3. A program request for a specific message.
What is Process Definition and what are the attributes does it contain?
Ans: A process definition object defines an application that starts in response to a trigger event on a
WebSphere MQ queue manager. The process definition attributes include the application ID, the
application type, and data specific to the application.
2. Linear: Linear logging gives you both restart recovery and media recovery. It is used in Production.
Linear logging keeps the log data in a continuous Sequence of files. Space is not reused, so you can
always retrieve any record logged from the time that the queue manager was created. As disk space is
finite, you might have to think about some form of archiving. It is an administrative task to manage your
disk space for the log, reusing Or extending the existing space as necessary.
What is the Default location where the logs are stored and mention the default sizes?
Ans: Default location:
Windows: C:\Program Files\IBM\WebSphere MQ\log\qmgr
UNIX: /var/mqm/log
running on a fast channel and of non persistant,Then there is a chance of the message loss.
What is the command that is used to provide authorization for the clients?
Ans: setmqaut -m QMName -t queue -n Queuename -p GUEST +all
What are the common errors u get in DQM? Explain how to resolve ?
Ans: mqrc 2058: MQRC_Q_MGR_NAME_ERROR
Mqrc 2059: MQRC_Q_MGR_NOT_AVAILABLE.
Mqrc 2033: MQRC_NO_MSG_AVAILABLE.
Mqrc 2085: MQRC_UNKNOWN_OBJECT_NAME.
Mqrc 2009: MQRC_CONNECTION_BROKEN.
Mqrc 2043: MQRC_OBJECT_TYPE_ERROR.
Mqrc 2086: MQRC_UNKNOWN_OBJECT_Q_MGR.
Mqrc 2035: MQRC_NOT_AUTHORIZED.
What are different modes in which a application can connect to a Queuemanager?
Ans: 1.Binding mode: In binding mode, also known as server connection, the communication to the queue
manager utilizes inter-process communications. One of the key factors that should be kept in mind is that
binding mode is available only to programs running on the MQSeries server that hosts the queue
manager. A program using binding mode will not run from an MQSeries client machine. Binding mode is a
fast and efficient way to interact with MQSeries. Certain Facilities, such as XA transaction co-ordination
by queue manager, are available only in binding mode.
2. Client Connection: Client connection uses a TCP/IP connection to the MQSeries Server and enables
communications with the queue manager. Programs using client connections can run on an MQSeries
client machine as well as on an MQSeries server machine. Client connections use client channels on the
queue manager to communicate with the queue manager. The client connection does not support XA
transaction coordination by the queue manager.
What are the different types of messaging systems used by JMS?
Ans: JMS applications use either the point-to-point (PTP) or publish/subscribe style of messaging.
Point-to-Point: Point-to-point messaging involves working with queues of messages. The sender sends
messages to a specific queue to be consumed normally by a single receiver. In point-to-point
communication, a message has at most one recipient. A sending client addresses the message to the
queue that holds the messages for the intended (receiving) client.
Publish/Subscribe: In contrast to the point-to-point model of communication, the publish/subscribe model
enables the delivery of a message to multiple recipients. A sending client addresses, or publishes, the
message to a topic to which multiple clients can be subscribed. There can be multiple publishers, as well
as subscribers, to a topic.
Is It Possible to use one transmission Queue for the multiple message channels?
Ans: It is possible to define more than one channel per transmission queue, but only one of these
channels can be active at any one time. This is recommended for the provision of alternative routes
between queue managers for traffic balancing and link failure corrective action. A transmission queue
cannot be used by another channel if the previous channel to use it terminated leaving a batch of
messages in-doubt at the sending end.
What is the command used to test whether the channel is active or not?
What happens if channel terminates when fast non-persistent messages are in transit?
If a channel terminates while fast, non-persistent messages are in transit, the messages are lost and it is
up to the application to arrange for their recovery if required. If the receiving channel cannot put the
message to its destination queue then it is placed on the dead letter queue, if one has been defined. If
not, the message is discarded.
The runmqdlq command takes its input from stdin. When the command is processed, the results and a
summary are put into a report that is sent to stdout.
Which field of the MQDLH structure contains a reason code that identifies why the message is on the
DLQ?
Reason field
What is completion code(MQCC) and reason code(MQRC)?
Completion code gives the status of the current transaction it can be 0, 1, 2. 0- for Successful completion
(MQCC_OK), 1- Warning (MQCC_WARNING), 2- call failed (MQCC_FAILED). Reason code is that which
gives the reason for which the transaction fails it can be MQRC_NONE, MQRC_BACKED_OUT etc.
BackoutCount (MQLONG)?
This is a count of the number of times that the message has been previously returned by the MQGET call
as part of a unit of work, and subsequently backed out. BackoutCount is the number of times the
application tried and failed to put the messages in the Queue
What is segmentation and explain segmentation Flag?
When a message is too big for a queue, an attempt to put the message on the queue usually fails.
Segmentation is a technique whereby the queue manager or application splits the message into smaller
pieces called segments, and places each segment on the queue as a separate physical message. The
application that retrieves the message can either retrieve the segments one by one, or request the queue
manager to reassemble the segments into a single message that is returned by the MQGET call.
When we use CCSID attribute of the ALTER QMGR command to change the CCSID of the QM what are
the components that need to be restarted?
Stop and restart the queue manager, stop and restart command server (A command server processes
command messages) and channel programs