Академический Документы
Профессиональный Документы
Культура Документы
SERIES
TYPES OF QUEUES:
Local Queue
Alias Queue
Model Queue
Remote Queue
Repository Queue
Local Queue: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.
Note:-Both programs do not have to run in the same workstation. Client
workstations usually use a queue manager in a server machine.
Remote Queue:-The queue which holds the address of the remote queue
manager where the message has to be sent or delivered.
It is a logical queue where we cannot store the messages and get the
messages.
* To send the messages we use only Remote Queue, none other than this*
Remote queueTransmission queueChannelNetwork receiver
channelLocal queue (finally the message will reach here)
CHANNEL
Channel (123.456)channel name.
CHLTYPE (SDR) sender channel
TRPTYPE (TCP) Transport type using TCP protocol
CONNAME (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.
XMITQ (TQ)the channel will receive the messages from
transmission queue manager.
Def chl(QM1.QM2) chltype(SDR) trptype(TCP)
conname(LOCALHOST(5858)) xmitq(RQ)
ALIAS QUEUE:-Alias queues are not real queues but they are
definitions. They are used to assign different names to the same
physical queue.
Advantages of alias queue allow multiple programs to work with the
same queue but with different attributes or properties.
APPLI 1
PQ
GQ
APPLI 2
LQ
In PQ get condition is disabled and in GQ put condition is disabled.
DEFINE QALIAS (PQ) TARGQ (LQ) GET (DISABLED) PUT
(ENABLED)
DEFINE QALIAS (PQ) TARGQ (LQ) PUT (ENABLED) GET
(DISABLED)
DEFINE QLOCAL (LQ)
MODEL QUEUE:A model queue is not a real queue. It is a collection of attributes that are used
when a dynamic queue is created.
Repository Queue:Repository queues have existed since Version 5.1 and Version 2.1 for
OS/390. They 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.
TYPES OF LOCAL QUEUE: Dead letter Queue
Transmission Queue
Initiation Queue
Local Queue.
Server Channel(SVR)
Requester Channel(RQSTR)
Cluster Sender Channel(CLUSSDR)
Cluster Receiver Channel(CLUSRCVR)
MQI CHANNELS:-These channels are two way piping channels which can
send and receive the messages in both ways.
TYPES: Server Connection Channel (SVRCONN)
Client Connection Channel (CLNTCONN)
COMBINATION OF CHANNELS: Sender and Receiver
Server and Requester
Cluster sender and Cluster Receiver
Server Receiver
Sender Requester
LISTENER: It is a service of MQ series
Every Queue Manager will have a listener defined with a unique port
number.
(Default port number is:-1414)
Listener acts as a mediator between external application or queue
managers connecting to the queue manager.
To contact the queue manager we should approach through Listener.
MQI COMMANDS:MQI Commands are of three types.
CONTROL COMMANDS
SCRIPT COMMANDS
PCF (programmable command format) COMMANDS.
CONTROL COMMANDS :-( case sensitive)
Dspmqver :-to display MQ series version
Dspmq
:-to view all queue managers of MQ series.
Crtmqm :-to create a queue manager
END
:-to come out of the queue manager
PING
:-to check whether other side channel / queue manager is
ready to accept our request.
START :- to start the particular channel or listener
STOP
:-to stop particular channel or listener
REFRESH :-used to refresh the security every time after giving or
executing, set mgr or command for queue manager or object
RESET
:-used to reset channel,cluster,queue manager
RESOLVE :-to resolve the channel which is in indoubt state
SUSPEND :-to suspend a queue manager from a cluster
environment
RESUME :-to remove a queue manager from a cluster
environment
CHANNEL STATES: - Channel states are of 5 types
Running
Inactive
Retrying
Stopped
Paused(receiver channel)
Initiation queue(SYSTEM.CHANNEL.INITQ)
2. At the initiation queue a long running time program called trigger monitor
will be watching (monitoring) the initiation queue.
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.
DEFINE PROCESS (NOTEPAD) APPLICID (NOTEPAD.EXE)
APPLYTYPE (WINDOWS NT)
COMMAND SERVER:-it is a background process for queue manager
when the queue manager starts command server will be running (default)
Note: - we have one attribute (SCMDSERV) and we have two options in
that
1. QMGR
2. MANUAL
By default the queue manager command server will be under control of
(QMGR)
If we change the SCMDSERV attribute to manual then we need to start
command server manually.
CONTROL COMMANDS FOR COMMAND SERVER: Dspmqcsv
Strmqcsv
Endmqcsv
1. Dspmqcsv: - to display the command server for particular queue manager
Syntax:-dspmqcsv qmgrname
E.g.:- Dspmqcsv QM1.qmgr
2. Strmqcsv:-to start the command server for a particular queue manager
Syntax:-strmqcsv a qmgrname
Eg:-strmqcsv Qm1
3. Endmqcsv:-to end the command server for a particular queue manager
Syntax:-endmqcsv c I qmgrname
Inq
Connect
Altusr
Crt
Dlt
Chg
Dsp
Setid
Setall
[ c:\programfiles\IBM\websphere MQ\log\QMGR(QM1)\active
directory\log files ]
Default path for log files in LINUX, UNIX, SOLARIS, AIX (other than
windows):[ $/var/MQM/log/Qm1/active/logfiles ]
Transmission logs are of two types:1. CIRCULAR LOGS
2. LINEAR LOGS
LINEAR LOGS: - In linear logs we can recover objects which are damaged
and we can take backup and clear the transactions.
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.
CHECKPOINT:-It is nothing but creation of objects, which are stored as a
transaction and are stored at Checkpoint (objects are LQ, TQ, and
Channeletc)
Creation of queue manager in linear logging:Syntax:Crtmqm LL Lf 2048 Lp 10 LS 1 QM2
Syntax:- rcdmqimg
Rcdmqimg[-z] [-L] [-m Qmgrname ] t objtype[generic object name]
Rcdmqimg m Qm1 t queue LQ
To recover or recreate:Rcrmqobj this command is used to recover the objects.
Syntax:-rcrmqobj[-z] [-m Qmgrname] t objtype[generic objname]
Eg:- rcrmqobj m Qm1 t q LQ
ERROR LOGS:The operations going on(running) on MQ series will be
written to errorlogs.
We have two types of error logs,
1.MQseries level
2.Queue manager level errors
Queue manager level errors:-the operations and errors are written to the
queue manager error folder.
Default path for windows :
[ c:\program files\IBM\websphere MQ\Qmgrs(QM1)\errors\logfiles ]
Path for UNIX, LINUX, and SOLARIS:[$/var/mqm/qmgrs/Qm1/errors/logfiles ]
MQ series level errors :- the operations or errors which are occurring on
MQ series are considered as MQ series level errors.
Default path for windows :[ C:]program files\IBM\Websphere mq\errors\log files ]
Path for UNIX, LINUX, SOLARIS :[ $/var/mqm/errors/logfiles ]
MQ series Client :- The person or user or application trying to connect
access MQseries server or queue manager they need MQ series client
installed at their side
MQI channels :-The MQseries client will interact with MQ series server
using server connection (SVRCONN) or Client connection
channel(CLNTCONN)
In MQ client sid ewe have three environmental variables
1. MQSERVER ( MQI channels )
2. MQCHLTAB ( MQI channel tables )
3. MQCHLIB (MQI channel library )
Creation of server connection channel :DEFINE CHANNEL(SVR) CHLTYPE(SVRCONN) TRPTYPE(TCP)
DESCR(SERVER CONNECTION CHANNEL(not mandatory))
Syntax:Set mqserver=server connection channel name/trptype/IP
address(port)
Eg :- set Mq server=SVR\tcp\127.0.0.1(1000)
Set MQSERVER
Result:- svr\tcp\127.0.0.1(1000)
How a Client Sends a Request:The client starts a program that puts a message on a queue. For this function
five MQSeries API calls are executed
MQCONN to connect to the queue manager in the server
MQOPEN to open the message queue QS1 for output
MQPUT
to put a message in the queue
MQCLOSE to close the queue QS1
MQDISC
to disconnect from the queue manager
How the Client Receives a Reply :The client program knows the name of its input queue, here QA1 or QB1.
The application can use two modes of communication: Conversational
If the application uses this mode of communication with the server program,
it waits for the message to arrive before it continues processing. This means,
the reply queue is open and an MQGET with wait option has been issued.
The client application must be able to deal with two possibilities:
The message arrives in time.
The timer expires and no message is there.