Professional Documents
Culture Documents
p
: -It is an IBM web sphere product which is evolved in 1990¶s.p
Independent. For every OS we have different MQ series software¶s. But the functionality of MQ seriesp
ÿ
p
ÿ
c
p
In OBJECaS we havep
up p
up ÿ p
up Dÿ p
up ÿp
up p
!
: - objects are used to handle the transactions with the help of services.p
: - it is a database structure which stores messages until the application or program receives
messages.p
· p
·
p
· # p
· p
·
$ p
p
A queue is local if it is owned by the queue manager to which the application program is connected. It
is used to store messages for programs that use the same queue manager. For Example, program A
and program B each has a queue for incoming messages and another queue for outgoing messages.
Since the queue manager serves both programs, all four queues are local.p
Both programs do not have to run in the same workstation. Client workstations usually use a
queue manager in a server machine.p
:-ahe queue which holds the address of the remote queue manager where the
message has to be sent or delivered.p
It is a logical queue where we cannot store the messages and get the messages.p
* ao send the messages we use only Remote Queue, none other than this*p
´ % &'
ÿ (127.0.0.1)(1414)àthe channel will connect to the IP address specified in the conn name
and looks for the queue manager which is having listener, port number(1414) and connects to the
queue manager.p
XMIaQ (aQ)àthe channel will receive the messages from transmission queue manager.p
:-Alias queues are not real queues but they are definitions. ahey are used to assign
different names to the same physical queue.p
Advantages of alias queue allow multiple programs to work with the same queue but with different
attributes or properties.p
DD-p
Dp
DD.p
p
p
A model queue is not a real queue. It is a collection of attributes that are used when a dynamic queue
is created.p
$ p
Repository queues have existed since Version 5.1 and Version 2.1 for OS/390. ahey are used in
conjunction with clustering and hold either a full or a partial repository of queue managers and queue
manager objects in a cluster (or group) of queue managers.p
· # p
· '
' p
· ' ' p
· p
: - the enrooted (or) undelivered messages will be landed in to the dead letter
queue.p
We have one control command called '%#%.It is a control command which is used to route the
messages through table.p
ahis is called dead letter handler. It is important that we need a dead letter queue defined for every
queue manager.p
p
For one Queue manager we can¶t have two dead letter queuesp
Or we can use our own dead letter queue. ahe messages those are landed in the dead letter header
(DLH).p
By seeing the dead letter header, we can find the reason and the destination.p
:-p
:-aQ will receive messages from Remote queue and hits or sends the
messages to the channel.p
ÿ :-It is a Networked program to transmit or pas the messages over the network.p
Channel will receive the messages from [ which is defined in the definition of the channel.
aransmission queue is also a local queue.p
·
''
p
· ÿ''
p
ÿ :-Message channels are one way piping channels. ahey are used for sending or
receiving the messages.p
· * ÿ'' +ÿ½,p
· * ÿ'' +½,p
· %
ÿ'' +,p
· ÿ
'# ÿ'' +ÿ ,p
· ÿ
* ÿ'' +ÿ ÿ½,p
ÿ :-ahese channels are two way piping channels which can send and receive the
messages in both ways.p
D :- p
· '# '# * p
· * '# %
p
· ÿ
'# '#ÿ
* p
· * * p
· '# %
p
:-p
up It is a service of MQ seriesp
up Every Queue Manager will have a listener defined with a unique port number.p
up (Default port number is:-1414)p
up Listener acts as a mediator between external application or queue managers connecting to the
queue manager.p
up ao contact the queue manager we should approach through Listener.p
ÿ:-p
· ÿÿp
· ÿDÿp
·
%* :-to display MQ series versionp
·
%:-to view all queue managers of MQ series.p
· '%
:-to enter in to particular queue managerp
·
%
* :-to display command serverp
· '#%
*:-to end command serverp
· %
* :-to start command serverp
· '%
:-to run listener servicep
· '#%
:-to end listener servicep
· '%#% :-to execute dead letter handle with the help of rule tablep
·
% :-to display authorization for particular userp
· '% :-to run trigger monitor on initiation queue for particular queue managerp
· #% :-to take objects (or) record image of a particular queue manager objectsp
· :-sp
ÿDÿ:-p
· D :-to check whether other side channel / queue manager is ready to accept our
request.p
· " :-used to refresh the security every time after giving or executing, set mgr or
command for queue manager or objectp
up '' 'p
up ' * p
up $ 'p
up #p
up D
#+ * '' ,p
- : - before going to Running state the status will be initialization and bindingp
.ÿ½ :-we have one attribute called disconnect interval +ÿ) with 6000 milli seconds
(default) and it can be changed as of our convenience. If the channel is idle for a particular period
defined in disconnect interval, the channel will go to inactive state.p
:-the channel goes to retrying state if the other side queue manager will not be
available, network issue, may be listener not running, may be receiver channel is in pause state, and
may be the receiver channel transportation type is different«. Etc. p
âD :- this state is applicable for receiver (RCVR) channel. Paused state occurs when
the receiving queue is full.p
p
Passing the messages between more than one intermediate queue managers is called Multi-Hopping.p
p
3. the application which is connected and putting the messages is called ³ O process ³p
Create a remote queue with attributes local queue name (Remote Queue Manager) i.e Rname QM3 in
RQMname and the transmission queue called XMIaQ (aQ).p
5. In Qm2 createp
6. Create a transmission queue with name target queue manager name called QM3.p
7. Create a sender channel from (QM2.QM3) with transmission queue called XMIaQ (QM3)p
m. In QM3 create a local queue called (LQ) which is defined in remote queue of QM1 Rqueue(QM1)p
* p
:-p
2.ariggering is an event which occurs when specific conditions are met on a queue p
2. DDÿ p
ÿ : - channel triggering is an event which fires the channel when ever a
certain conditions are met on transmission queue.p
ÿ:-p
· arigger ON p
· Initiation queue(SYSaEM.CHANNEL.INIaQ)p
''#:-p
DEFINE QLOCAL (aQ) USAGE (XMIaQ) aRIGGERaYPE (FIRSa) aRIGDAaA (111.222) INIaQ
(SYSaEM.CHANNEL.INIaQ)p
After giving specific conditions to a transmission queue, whenever the messages comes to the
transmission queue, the queue manager will look at the queue, if it is triggered the queue manager
will fire a trigger message in to initiation queue( ÿ ) with the information
called trigger type, trigger data, the channel which is to be fired.p
At the initiation queue ( ÿ ) channel initiator will be watching (monitoring)
the initiation queue.p
When ever the trigger message comes to initiation queue, the channel initiator will read the
information and initiates the sender MCA (message channel agent).the sender message channel agent
will start the channel (which is mentioned in the trigger data).p
:-ÿ (message channel agent) is a program which is defined automatically whenever a queue
manager is created.p
· ÿ+ÿ,p
· ÿ ½ ÿ+ÿ½ÿ,p
:- 1.In MQseries 5.3 we have to run this channel initiator as a separate process for every queue
manager.p
2.If we use ³&´ any process will run at background. this applicable for all.p
DDÿ :-when ever specific conditions met on a local queue application
triggering works.p
aRIGGER CONDIaION:-p
· arigger ONp
· Processp
DEFINE QLOCAL (LQ) aRIGGER aRIGaYPE (EVERY) INIaQ (IQ) PROCESS (NOaEPAD).p
1. When ever the message comes to triggered local queue, queue manager will fire trigger message
with information called trigger type and the process definition (application which is to be triggered) in
to the initiation queue (IQ) (our own queue).p
2. At the initiation queue a long running time program called trigger monitor will be watching
(monitoring) the initiation queue.p
3. Whenever the trigger message occurs in the initiation the trigger monitor will pick the information
and starts the application which is defined in the process.p
ÿ ½ :-it is a background process for queue manager when the queue manager starts
command server will be running (default)p
Note: - we have one attribute (ÿ ½) and we have two options in thatp
-p
. p
By default the queue manager command server will be under control of (QMGR)p
If we change the SCMDSERV attribute to manual then we need to start command server manually.p
ÿÿ"ÿ ½ :-p
·
%
*p
· %
*p
· '#%
*p
1.
%
*: - to display the command server for particular queue managerp
2.%
*:-to start the command server for a particular queue managerp
$'/:-strmqcsv ±a qmgrnamep
Eg:-strmqcsv Qm1p
3. '#%
*:-to end the command server for a particular queue managerp
$'/:-endmqcsv ±c ±I qmgrnamep
" ÿ ½ :- ahe command server will allow commands to execute on a queue
manager usingp
(SYSaEM.ADMIN.COMMAND QUEUE)p
When the command server is stopped the commands, the commands will be stored in the command
queue called p
(SYSaEM.ADMIN.COMMAND QUEUE)p
After command server comes up the commands would be executed those are in the command queue.p
1. Qmanager levelp
2. Object levelp
:- ahis group is automatically created by MQseries after installation. It also creates one
user (MUSR_MQADMIN)p
ahe users should belong to MQM group so that they can have all the permissions to administer MQ
series.p
$'/:- setmqaut[-m qmgrname] [-n objname] ±t objtype [-p principal /-g group] [-s service
component ] p
% :-to display the authorizations which are set to the queue manager.p
$'/ dspmqaut[-M qmgrname] [-n objname ] ±t objtype [-p principal/ -g group ] [-s service
component]p
· Inqp
· Connectp
· Altusrp
· Crtp
· Dltp
· Chgp
· Dspp
· Setidp
· Setallp
$'/ p
Runmqsc QM1p
up REFRESH CLUSaERp
up REFRESH SECURIaY(generally we refresh security)p
: web sphere security cache refreshedp
-p
. p
Default path for log files in LINUX, UNIX, SOLARIS, AIX (other than windows):-p
[ $/var/MQM/log/Qm1/active/logfiles ]p
'
'
($
:-p
-ÿÿ p
. p
: - In linear logs we can recover objects which are damaged and we can take backup
and clear the transactions.p
By using linear logs we can restart, recover and Image backup. In this we need some administrative
tasks to monitor the logs and to clear the logs.p
ÿ ÿD:-It is nothing but creation of objects, which are stored as a transaction and are stored
at Checkpoint (objects are LQ, aQ, and Channel«etc)p
$'/:-p
Crtmqm ±LL ±Lf 204m ±Lp 10 ±LS 1 QM2p
:-1. In transaction logs we have log primary and log secondary.p
2. We can view log primary files but we cannot view log secondary p
Files.p
4. We can define log primary files maximum up to 250 files and log p
$'/:- rcdmqimgp
ao recover or recreate:-p
:-p
1.MQseries levelp
[$/var/mqm/qmgrs/Qm1/errors/logfiles ]p
*
:- the operations or errors which are occurring on MQ series are considered
as MQ series level errors.p
[ $/var/mqm/errors/logfiles ]p
ÿ ' :- ahe person or user or application trying to connect access MQseries server or
queue manager they need MQ series client installed at their side p
''
:-ahe MQseries client will interact with MQ series server using server connection
(SVRCONN) or Client connection channel(CLNaCONN)p
ÿ '
* '' ''' :-p
Syntax:- p
Eg :- set Mq server=SVR\tcp\127.0.0.1(1000)p
Set MQSERVER p
Result:- svr\tcp\127.0.0.1(1000)p
Between persistent and non-persistent messages. Delivery of persistent messages is assured; they
Are written to logs to survive system failures. In an AS/400 these logs are Journal Receivers.p
ahe client starts a program that puts a message on a queue. For this function five MQSeries API calls
are executed p
ahe client program knows the name of its input queue, here QA1 or QB1. ahe application can use two
modes of communication: ÿ p
If the application uses this mode of communication with the server program, it waits for the message
to arrive before it continues processing. ahis means, the reply queue is open and an with wait
option has been issued.p
p
p
p