Read without ads and support Scribd by becoming a Scribd Premium Reader.
 
MQ v6 Tutorial
MQ Series/MQ: - It is an IBM web sphere product which is evolved in 1990¶s. MQ series doestransportation from one point to other. It is an EAI tool (Middleware). Now it is renamed as WebSphereMQ.VERSIONS:-5.0, 5.1, 5.3, 6.0, 7.0(new version).Currently widely used version is 6.2Note: - MQ series supports more than 35+ operating systems. It is platform independent. For every OSwe have different MQ series software¶s.MQ series deals with two things, they are OBJECTS, SERVICES.In OBJECTS we have QUEUES CHANNELS PROCESS AUTHENTICATIONQUERY MANAGER.In SERVICES we have LISTENERS.Objects: - objects are used to handle the transactions with the help of services.QUEUE MANAGER maintains all the objects and services.QUEUE: it is a database structure which stores messages until the application or program receivesmessages.TYPES OF QUEUES:- Local Queue Alias Queue Model Queue Remote Queue Repository QueueLocal Queue:- A queue is local if it is owned by the queue manager to which the application program is connected. It isused to store messages for programs that use the same queue manager. For Example, program A andprogram B each has a queue for incoming messages and another queue for outgoing messages. Sincethe 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 queuemanager 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.Note: To send the messages we use only Remote Queue, none other than thisMessage Flow from remote Queue³Remote queue-> Transmission queue-> Channel->Network receiver channel-> Local queue (finally themessage will reach here) ³CHANNEL Channel (123.456)channel name.CHLTYPE (SDR) sender channelTRPTYPE (TCP) Transport type using TCP protocolCONNAME (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 queuemanager.XMITQ (TQ)?the channel will receive the messages from transmission queue manager. ALIAS QUEUE:- Alias queues are not real queues but they are definitions. They are used to assign different names to thesame physical queue. Advantages of alias queue allow multiple programs to work with the same queue but with differentattributes or properties.Example: Alias for LQ with different parametersDEFINE 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 iscreated.Repository Queue:-Repository queues have existed since Version 5.1 and Version 2.1 for OS/390. They are used inconjunction with clustering and hold either a full or a partial repository of queue managers and queuemanager objects in a cluster (or group) of queue managers.TYPES OF LOCAL QUEUE:- Dead letter Queue Transmission Queue Initiation Queue Local Queue.DEAD-LETTER QUEUE: - the enrooted (or) undelivered messages will be landed in to the dead letter queue.We have one control command called runmqdlq.It is a control command which is used to route themessages through .rul table.This is called dead letter handler. It is important that we need a dead letter queue defined for every queuemanager.Note:- For one Queue manager we can¶t have two dead letter queues.We have system defined objects called SYSTEM.DEAD.LETTER.QUEUE. Or we can use our own deadletter queue. The messages those are landed in the dead letter header (DLH). By seeing the dead letter header, we can find the reason and the destination.RULE TABLE:-Syntax:- DESTQ(DLQ) DESTQM(222) REASON(*) WAIT(NO) FWDQ(LQ) FWDQM(222) HEADER(NO)Runmqdlq:-rule table pathTRANSMISION QUEUE:-TQ will receive messages from Remote queue and hits or sends the messagesto the channel.CHANNELS:-It is a Networked program to transmit or pas the messages over the network. Channel will receive themessages from XMITQ which is defined in the definition of the channel. Transmission queue is also alocal queue.TYPES OF CHANNELS:- Message channels. MQI Channels.
 
MESSAGE CHANNELS:-Message channels are one way piping channels. They are used for sending or receiving the messages. Message channels are unidirectional.TYPES OF MESSAGE CHANNELS:- Sender Channel(SDR) Receiver Channel(RCVR) 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 themessages 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 seriesEvery 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 queuemanager.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  Strmqm :-to start queue manager  Runmqsc :-to enter in to particular queue manager  Endmqm :-to end a queue manager  Dltmqm :-to delete a queue manager  Dspmqcsv :-to display command server  Endmqcsv :-to end command server  Strmqcsv :-to start command server  Runmqlsr :-to run listener service Endmqlsr :-to end listener service Runmqchl :-to run a channel out of queue manager  Runmqdlq :-to execute dead letter handle with the help of rule table Setmqaut :-to set authorizations for particular objects like queuemanager,queue¶s channels, listeners touser or group
Search History:
Searching...
Result 00 of 00
00 results for result for
  • p.
  • Notes
    Load more