Top Banner

of 76

webshere notes1

Jul 06, 2018

Download

Documents

Abhinav Garg
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/17/2019 webshere notes1

    1/76

    https://sites.google.com/site/interviewwebsphere/home/webspheremqquestions

    Useful Commands for MQ administration

    dspmqver :- to display MQ series version

    dspmq :- to view all queue managers of MQ series.crtmqm :- to create a queue managerstrmqm :- to start queue managerrunmqsc :- to enter in to particular queue managerendmqm :- to end a queue managerdltmqm :- to delete a queue managerdspmqcsv :- to display command serverendmqcsv :- to end command serverstrmqcsv :- to start command serverrunmqlsr :- to run listener serviceendmqlsr :- to end listener servicerunmqchl :- to run a channel out of queue managerrunmqdlq :- to eecute dead letter handle with the help of rule tablesetmqaut :- to set authori!ations for particular ob"ects li#e queuemanager$queue%s channels$ listeners touser or groupdspmqaut :- to display authori!ation for particular userdmpmqaut :- to dump authori!ation for particular userrunmqchi :- to run a channel initiator for particular queue managerrunmqtrm :- to run trigger monitor on initiation queue for particular queue managerrcdmqimg :- to ta#e ob"ects &or' record image of a particular queue manager ob"ectsrcrmqob" :- to recreate the mq ob"ects which are already recorded

      Useful synta of (U)MQ*C utility for hadling QueueManager

    +,), :- o define/create MQ manager ob"ects li#e queue$ Channels$ process$ and listener.01,( :- to update or modify the eisting ob"ects+*2103 :- to view all the properties of a particular ob"ect or to +isplay all ob"ects+,1,, :- to delete created ob"ectsC1,0( :- to clear the message from the queue,)+ :- to come out of the queue manager2)4 :- to chec# whether other side channel / queue manager is ready to accept our request.*0( :- to start the particular channel or listener*52 :- to stop particular channel or listener(,(,*6 :- used to refresh the security every time after giving or eecuting$ set mgr or command forqueue manager or ob"ect(,*, :- used to reset channel$cluster$queue manager(,*517, :- to resolve the channel which is in indoubt state*U*2,)+ :- to suspend a queue manager from a cluster environment(,*UM, :- to remove a queue manager from a cluster environment

  • 8/17/2019 webshere notes1

    2/76

    Websphere MQ 

     

    Q1.What is MQ and what does it do?

    Ans. MQ stands for MESSAGE QUEUEING. WebSphere MQ allows application programs touse message queuing to participate in message-driven processing. Application programs cancommunicate across different platforms by using the appropriate message queuing softwareproducts.

    Q2.What is Message driven process?

    Ans . When messages arrive on a queue, they can automatically start an applicationusing triggering . f necessary, the applications can be stopped when the message !or messages" have been processed.

    Q3.What are advantages o the MQ?

    Ans. #. ntegration.

    $. Asynchrony

    %. Assured &elivery

    '. Scalability.

    Q!."ow does it s#pport the Integration?

    Ans. (ecause the MQ is independent of the )perating System you use i.e. it may beWindows, Solaris,A*.t is independent of the protocol !i.e. +, /01.$, S2A, 2et()S,0&".t is not required that both the sender and receiver should be running on the sameplatform

    $. What is As%nchron%?

    Ans. With message queuing, the e3change of messages between the sending and receivingprograms is independent of time. +his means that the sending and receiving applicationprograms are decoupled4 the sender can continue processing without having to wait for thereceiver to ac5nowledge receipt of the message. +he target application does not even have tobe running when the message is sent. t can retrieve the message after it is has been started.

  • 8/17/2019 webshere notes1

    3/76

    Q&.what is a Message and what does it contain?

    Ans' A message is a string of bytes that is meaningful to the applications that use it.Messages are used to transfer information from one application program to another !or between different parts of the same application". +he applications can be running on thesame platform, or on different platforms.

    WebSphere MQ messages have two parts6

    #. The application data. +he content and structure of the application data is defined by theapplication programs that use it.

    $. A message descriptor . +he message descriptor identifies the message and containsadditional control information, such as the type of message and the priority assigned to themessage by the sending application. WebSphere MQ defines the format of the messagedescriptor.

    Q(.What is the Ma) *ength o the +essage does MQ s#pport,

    Ans' +he default ma3imum message length is ! M-, although you can increase this to ama3imum length of 1 M- !where # M( equals # 7'8 9:1 bytes".

     

    Q/.What is Q#e#e?

    Ans' A queue is a data structure used to store messages. A queue manager owns eachqueue. +he queue manager is responsible for maintaining the queues it owns, and for storing

    all the messages it receives onto the appropriate queues

    Q0.What are the ierent %pes Q#e#es?

    Ans' Queues can be characteri;ed by the way they are created6

    #. 4redeined 5#e#es are created by an administrator using the appropriate MQS or <commands. redefined queues are permanent4 they e3ist independently of the applicationsthat use them and survive Web Sphere MQ restarts.

    $ %na+ic 5#e#es are created when an application issues an MQ)=2 request specifying

    the name of a model queue. +he queue created is based on a template queue definition,which is called a model queue.

    Q1."ow does an app6ication sends and receives +essages ro+ the Q#e#es?

    Ans' Application programs send and receive messages using MQI calls.

    MQ4EN' t is used to open the >equire Queue.

  • 8/17/2019 webshere notes1

    4/76

    MQ4U' t is used to 0+ the message in to the >equired Queue.

    MQGE' t is used to get the message from the required Queue.

    MQ7NN8' +his command used to connect to the QueueManager 

    MQ4U1' t performs the putting, browsing and getting application at a time on a singlequeue.

    MQ7*SE' t closes the connection with the Queue.

    MQIS7' +his is used to disconnect the application with the Queuemanager.

    11.What is the A6gorith+ o66owed in retrieving the Messages ro+ the Q#e#e?

    Ans' #.

  • 8/17/2019 webshere notes1

    5/76

    indirectly in MQ calls. When an alias queue name is used in an MQ call, the name isresolved to the name of either a local or a remote queue at run time. +his allows you tochange the queues that applications use without changing the application in any way4 youmerely change the alias queue definition to reflect the name of the new queue to which thealias resolves. An alias queue is not a queue, but an ob?ect that you can use to accessanother queue.

    Mode6 5#e#e o9:ect A model queue defines a set of queue attributes that are used as atemplate for creating a dynamic queue.

    Q1$."ow can U deine Q#e#es in MQ?

    Ans' Queues are defined to Web Sphere MQ using6

    #. +he MQS command &=

  • 8/17/2019 webshere notes1

    6/76

    +he queue managers might e3ist on the same, or different, platforms. &ifferent types of hannels6

    #. Sender->eceiver hannels

    $. >equester-Server hannels

    %. lient onnection channels

    '. Server onnection hannels.

    9. luster Sender.

    1. luster >eceiver hannels

    Q21What is 76#ster?

    Ans' A cluster is a group of queue managers set up in such a way that the queue managerscan communicate directly with one another over a single networ5, without the need for transmission queue, channel, and remote queue definitions.

    Q22.What is MQ 76ient?

    Ans' A Web Sphere MQ client is a component that allows an application running on a systemto issue MQ calls to a queue manager running on another system. +he output from the call issent bac5 to the client, which passes it bac5 to the application.

    Q23.What is MQ Server?

    Ans' A Web Sphere MQ server is a queue manager that provides queuing services to one or more clients. All the Web Sphere MQ ob?ects, for e3ample queues, e3ist only on the queuemanager machine !the Web Sphere MQ server machine", and not on the client. A WebSphere MQ server can also support local Web Sphere MQ

     Applications.

    Q2!.What are co++ands #sed or creating the Q#e#e +anager ro+ the 7o++andpro+pt?

    Ans6 crtmqm =5 =d M@.&=.Q0=0= QM#

    ere =5 used to define the Queue manager QM# as a &efault Queue manager 

    =d is used to define the default transmission Queue =# is used to define the default dead letter queue.

    Q2$."ow can U +a>e the e)isting Q#e#e Manager as an dea#6t Q#e#e Manager?

  • 8/17/2019 webshere notes1

    7/76

    Ans' )n Windows systems, use the Web Sphere MQ Services snap-in to display theproperties of the queue manager, and chec5 the Ma5e queue manager the default bo3. @ouneed to stop and restart the queue manager for the change to ta5e effect.

    Q2&.Where are the 9ac>#p i6es are present ater creating the Q#e#e Manager?

    Ans' Windows s%ste+s6 f you use Web Sphere MQ for Windows 2+ and Windows $777,configuration information is stored in the Windows >egistry.

    UNI8 S%ste+s6 #. When you install the product, the Web Sphere MQ configuration file!mqs.ini" is created. t contains a list of queue managers that is updated each time you createor delete a queue manager. +here is one mqs.ini file per node.

    $. When you create a new queue manager, a new queue manager configuration file !qm.ini" isautomatically created. +his contains configuration parameters for the queue manager.

    Q2(.What is the co++and #sed or starting the Q#e#e Manager?

    Ans' str+5+ QMNa+e

    Q2/.What is the co++and #sed or stopping the Q#e#e +anager?

    Ans' end+5+ =w QMNa+e

    +he command waits until all applications have stopped and the queue manager has ended.

    end+5+ i QMNa+e

    +his type of shutdown does not wait for applications to disconnect from the queue manager.

    Q20.What is the co++and #sed to de6ete the Q#e#eManager?

    Ans' d6t+5+ QMNa+e

     

    Q3."ow can a 76ient connect to a ;e+ote Server?

    Ans' +he client can establish a connect with the Server using the command

    SE MQSE;@E;S

  • 8/17/2019 webshere notes1

    8/76

    Q33.What does MQS7 7o++ands are #sed or?

    Ans' @ou can use MQS commands to manage queue manager ob?ects, including the queuemanager itself, clusters, channels, queues, namelists, process definitions, and authenticationinformation ob?ects.

    Q3!.Is the MQS7 attri9#tes are 7ase sensitive?

    Ans' MQS commands, including their attributes, can be written in uppercase or lowercase.)b?ect names in MQS commands are folded to uppercase !that is, Q0=0= and queue arenot differentiated", unless the names are enclosed within single quotation mar5s. f quotationmar5s are not used, the ob?ect is processed with a name in uppercase.

    Q3$."ow can we write the MQS7 co++ands that have too +an% para+eters,

    Ans'

  • 8/17/2019 webshere notes1

    9/76

    number of messages on a queue reaches a specified number. +his facility is called triggering

    Q!1.E)p6ain the dierent t%pes o riggering?

    Ans' +here are three types of triggering

     #. S+6 $. =D=>@ %. &=+.

    Q!2.What is the ierent *ogging Methods avai6a96e?

    Ans' +here are two different types available

    #. 7irc#6ar 6 +he circular logging is used for restart recovery. t is the default logging method.ircular is used in &evelopment and +esting Queues. ircular logging 5eeps all restart &atain a ring of log files. /ogging fills the first file in the ring, then moves on to the and so on, untilall the files are full. t then goes bac5 to the first file in the ring and starts +his continues aslong as the product is in use, and has the advantage that you never run out of log files.

    $. *inear 6 /inear logging gives you both restart recovery and media recovery. t is used inroduction. /inear logging 5eeps the log data in a continuous Sequence of files. Space is notreused, so you can always retrieve any record logged from the time that the queue manager was created. As dis5 space is finite, you might have to thin5 about some form of archiving. tis an administrative tas5 to manage your dis5 space for the log, reusing )r e3tending thee3isting space as necessary.

    Q!3.What is the ea#6t 6ocation where the 6ogs are stored and +ention the dea#6tsiDes?

    Ans' ea#6t 6ocation'

    Windows6 6Erogram

  • 8/17/2019 webshere notes1

    10/76

    $, the minimum is #, and the ma3imum is 1#.

    Q!&.What is the dierence 9etween 4ersistent and Non 4ersistent Messages?

    Ans' n Web Sphere MQ, messages can be either persistent or non persistent. ersistentmessages are logged and can be recovered in the event of a WebSphere MQ failure. +hus,

    persistent messages are guaranteed to be delivered once and only once. 2onpersistentmessages are not logged. Web Sphere still guarantees to deliver them not more than once,but it does not promise to deliver them once.

    Q!(.What is the eect o #sing 4ersistant +essages?

    Ans' ersistent messages are usually logged. /ogging messages reduces the performanceof your application, so use persistent messages for essential data only. f the data in amessage can be discarded if the queue manager stops or fails, use a nonpersistent message.

    Q!/.What is Interco++#nication?

    Ans' n Web Sphere MQ, intercommunication means sending messages from one Queuemanager to another. +he receiving queue manager could be on the same machine or another4nearby or on the other side of the world. t could be running on the same platform as the localqueue manager, or could be on any of the platforms supported by Web Sphere MQ. +his iscalled a distri9#ted environ+ent. Web Sphere MQ handles communication in a distributedenvironment such as this using istri9#ted Q#e#e Manage+ent BQMC.

    +he local queue manager is sometimes called the so#rce 5#e#e +anager and the remotequeue manager is sometimes called the target 5#e#e +anager or the partner queuemanager.

    Q!0.What is the 9:ects re5#ired or the QM?

    Ans' n so#rce Q#e#eManager'

    1. +ransmission Queue $. >emote queue definition.

    %. &ead /etter Queue!recommended" '. Sender hannel

    n arget Q#e#e Manager 

    #. /ocal Queue $. &ead /etter Queue %. >eceiver hannel './istenr 

    FFF.+he sender and receiver channels names should be same.

    Q$.What is the attri9#te #sed to 9% the Message 6ength?

    Ans' Ma3Msg/ength

  • 8/17/2019 webshere notes1

    11/76

    Q$1.What is Message 7hanne6 agent BM7AC?

    Ans' A message channel agent !MA" is a program that controls the sending and receiving of messages. +here is one message channel agent at each end of a channel. )ne MA ta5esmessages from the transmission queue and puts them on the communication lin5. +he other MA receives messages and delivers them onto a queue on the remote queue manager.

     A message channel agent is called a ca66er M7A if it initiated the communication4 otherwise itis called a responder M7A.

    Q$2.What is 7hanne6 initiators and *isteners?

    Ans' A channel initiator acts as a trigger monitor for sender channels, because atransmission queue may be defined as a triggered queue. When a message arrives on atransmission queue that satisfies the triggering criteria for that queue, a message is sent tothe initiation queue, triggering the channel initiator to start the

    appropriate sender channel. @ou can also start server channels in this way if you specified theconnection name of the partner in the channel definition. +his means that channels can bestarted automatically, based upon messages arriving on the appropriate transmission queue.

    @ou need a channel listener program to start receiving !responder" MAs. >esponder MAs are started in response to a startup request from the caller MA4 the channel listener detects incoming networ5 requests and starts the associated channel.

    Q$3.What are attri9#tes re5#ired or the Sender 7hanne6?

    Ans' #. +he 2ame of the hannel

    $. +he onnection name

    %. +ransmission Queue 2ame

    Q$!.What are the attri9#tes re5#ired or the ;e+ote Q#e#e einition?

    Ans' #.2ame of the Queue $. +ransmission Queue 2ame.

    %. >emote QueueManager name '. >emote /ocal Queue 2ame

    Q$$.Mention the No o 7haracters re5#ired or creating na+es o the MQ o9:ects?

    Ans'

  • 8/17/2019 webshere notes1

    12/76

    Ans' Server side' runmqtrm -m QM2ame -q nitiation Queue2ame

    76ient side' runmqtmc -m QM2ame -q nitiation Queue2ame

    Q$(.What is the co++and #sed or creating the 6istener?

    Ans' crtmqlsr -t tcp -m QM2AM= -p portno

    Q$/.What is the co++ands #sed or r#nning 6istener?

    Ans' runmqlsr -t tcp -m QM2AM= -p portno

    Q$0.What is co++and #sed to peror+ tas> on the MQ services?

    Ans' amqmdain

    Q&.What are co++ands #sed on the 7o++and server?

    Ans' #.str+5csv6 to start the command server 

    $. dsp+5csv6 to display the command server 

    %. end+5csv6 +o end the command server.

    Q&1.Is there is an% chance or the Message 6oss?

    Ans' f the target queuemanager doesn.t contain the dead letter queue defined and if themessages are running on a fast channel and of non persistant,+hen there is a chance of the

    message loss.

    Q&2.What is the #se o c6#stering?

    Ans. &ue to the use of clustering

    #. +he Administrator tas5s can be reduced.

    $. We can achieve the Wor5load balance.

    Q&3."ow +an% no #66 ;epositor% Q#e#e Managers are re5#ired or creating a c6#ster.

    What is the dierence 9etween #66 and partia6 repositories?

    Ans' n each cluster you must select at least one, preferably two, or possibly more of thequeue managers to hold full repositories. A cluster can wor5 quite adequately with only onefull repository but using two improves availability. =very cluster has at least one !preferablytwo" queue managers holding full repositories of information about the queue managers,queues, and channels in a cluster. +hese repositories also contain requests from the other queue managers in the cluster for updates to the information. +he other queue managerseach hold a partial repository, containing information about the subset of queues and queue

  • 8/17/2019 webshere notes1

    13/76

    managers with which they need to communicate.

    Q&!.Where does the inor+ation a9o#t the +essages o a Q#e#eManager are storedwhen the% are in c6#ster?

    Ans' =ach queue manager stores its repository information in messages on a queue

    called S

  • 8/17/2019 webshere notes1

    14/76

    MQSeries Server and enables communications with the queue manager. rograms usingclient connections can run on an MQSeries client machine as well as on an MQSeries server machine. lient connections use client channels on the queue manager to communicate withthe queue manager. +he client connection does not support *A transaction coordination bythe queue manager.

    Q&/.What are the dierent t%pes o +essaging s%ste+s #sed 9% HMS?

    Ans' HMS applications use either the point-to-point !+" or publishsubscribe style of messaging.

    4oint=to=4oint6 oint-to-point messaging involves wor5ing with queues of messages. +hesender sends messages to a specific queue to be consumed normally by a single receiver. npoint-to-point communication, a message has at most one recipient. A sending clientaddresses the message to the queue that holds the messages for the intended !receiving"client.

    4#96ish,S#9scri9e' n contrast to the point-to-point model of communication, thepublishsubscribe model enables the delivery of a message to multiple recipients. A sendingclient addresses, or publishes, the message to a topic to which multiple clients can besubscribed. +here can be multiple publishers, as well as subscribers, to a topic.

    Q&0.What are dierent 7hanne6 stat#s?

    Ans' 7hanne6 Stat#s'

    1. Inactive

     

    2. 7#rrent'

    2.1C. Stopped 2.2C. Starting 2.3C. ;etr%ing

     

    2.!C. Active

    2.!.1C. Initia6iDing 2.!.2C. -inding 2.!.3C. ;e5#esting

    2.!.!C. ;#nning 2.!.$C. 4a#sed 2.!.&C. Stopping.

    Q(.Is It 4ossi96e to #se one trans+ission Q#e#e or the +#6tip6e +essage channe6s?

    Ans' t is possible to define more than one channel per transmission queue, but only one of these channels can be active at any one time. +his is recommended for the provision of alternative routes between queue managers for traffic balancing and lin5 failure correctiveaction. A transmission queue cannot be used by another channel if the previous channel to

  • 8/17/2019 webshere notes1

    15/76

    use it terminated leaving a batch of messages in-doubt at the sending end.

    Q(1.What is -A7" "EA;-EA INE;@A*?

    Ans' +he batch heartbeat interval allows a sending channel to verify that the receivingchannel is still active ?ust before committing a batch of messages, so that if the receiving

    channel is not active, the batch can be bac5ed out rather than becoming in-doubt, as wouldotherwise be the case. (y bac5ing out the batch, the

    messages remain available for processing so they could, for e3ample, be redirected toanother channel.

    Q(2.What is eep A6ive Interva6?

    Ans' +he Ieep Alive nterval parameter is used to specify a time-out value for a channel. +heIeep Alive nterval parameter is a value passed to the communications stac5 specifying theIeep Alive timing for the channel. t allows you to specify a different 5eep alive value for each

    channel. +he value indicates a time, in seconds, and must be in the range 7 to JJJJJ.

    Q(3.What is *NG ;etr% co#nt?

    Ans' Specify the ma3imum number of times that the channel is to try allocating a session toits partner. f the initial allocation attempt fails, the short retry count number is decrementedand the channel retries the remaining number of times.

    Q(!.What is the co++and #sed to test whether the channe6 is active or not?

    Ans' runmqsc  QM2ame

    Ping  channel !channel name".

    Q($. What are the co++ands that are #sed on c6ient side or p#tting and getting+essages ro+ a 5#e#e?

    Ans' amqsputc   -q Queue name -m QM2ame.

    amqsgetc -q Queue name -m QM2ame.

    Q(&.What is the ea#6t +a) Q#e#e depth?

    Ans $.

    Q::.What are the administrative commands that are used in ublish and SubscribeK

    Ans' +he str+59r> command is used to start a bro5er. +he first time this command is run ona queue manager, all the relevant MQSeries ob?ects are automatically created.

  • 8/17/2019 webshere notes1

    16/76

    str+59r>  -m M@QMG>2AM=

    +he dsp+59r> command is used to chec5 the status of the bro5er. ossible states are6starting, running, stopping, quiescing, not active and ended abnormally.

    dsp+59r>  -m M@QMG>2AM=

    +he end+59r> command is used to stop a bro5er. +here are two options6 =c requests acontrolled shutdown !default", =i requests an immediate shutdown.

    end+59r>  -i -m M@QMG>2AM=

    .

    Q(/.What is the a6gorith+ that is o66owed 9% MQ in c6#stering?

    Ans' WebSphere MQ uses a wor>6oad +anage+ent a6gorith+ that uses a ro#nd=

    ro9in routine to select an available queue manager to route a message to.

    Q(0.What is +#6tip6e hoping?

    Ans' f there is no direct communication lin5 between the source queue manager and thetarget queue manager, it is possible to pass through one or more intermediate queuemanagers on the way to the target queue manager. +his is 5nown as a multi-hop.

    Q/.What are the p6ator+ does MQ 76ient s#pport?

    Ans6 WebSphere MQ for A*

    WebSphere MQ for -0*

    WebSphere MQ for iSeries

    WebSphere MQ for Solaris

    WebSphere MQ for Windows

    WebSphere MQ for ;)S

    Q/1.What are the "ardware re5#ire+ents or We9Sphere MQ c6ient?

    Ans' A WebSphere MQ client can run on Windows on any ntel '81 processor based (M machine or equivalent that can run Windows J8 or Windows 2+L '.7. +here must be enoughrandom access memory !>AM" and dis5 storage for the programming prerequisites !below",the WebSphere MQ client, the access methods, and the application programs.

    Q/2.What are sotware re5#ire+ents or We9Sphere MQ c6ient?

  • 8/17/2019 webshere notes1

    17/76

    Ans' +he following are prerequisites for WebSphere MQ applications running on a Windowsclient.

    Minimum supported software levels are shown. /ater levels, if any, will be supported unlessotherwise stated.

    Microsoft Windows 2+, Dersion ' compatible, to include +, 2et()S, S2A /0 1.$, andS*.Microsoft Windows J8.

     

    WMQ Q#estions'

    WhatJs the +essage code or Stopping a Q#e#e Manager?

     AMQ'7'' Queue manager stopping

    What is triggering and what are the co+ponents?

    WebSphere MQ can start an application automatically when certain conditions on a queueare met.

  • 8/17/2019 webshere notes1

    18/76

    WhatNs the queue where the full and partial repository is storedK

    S@S+=M./0S+=>.>=)S+)>@.Q0=0=

    "ow to deter+ine i #66 repositories are in S%nch?

    S@S+=M./0S+=>.>=)S+)>@.Q0=0=S should have the same depth. Also you shouldfind something in your errorlogs if it fails. f the channels between the two s are able to run,trust (M, and assume all is well use runmqsc to display all cluster ob?ects. >edirect theoutput into a file Analy;e both files for differences .

    What is *oca6 ad+inistration and ;e+ote ad+inistration?

    *oca6 Ad+inistration' Means carrying out administration tas5s on any queue managers youhave defined on your local system.

    ;e+ote Ad+inistration' +his allows you to issue commands from your local system that areprocessed on another system.

  • 8/17/2019 webshere notes1

    19/76

     A queue manager that hosts a complete set of information about every queue manager in thecluster is referred to as having a full repository for the cluster. +he other queue managers inthe cluster inquire about the information in the full repositories and build up their own subsetsof this information in partial repositories. A partial repository contains information about onlythose queue managers with which the queue manager needs to e3change messages. +hequeue managers request updates to the information they need, so that if it changes, the full

    repository queue manager will send them the new information

    Where does each 5#e#e +anager store its repositor% inor+ation?

    S@S+=M./0S+=>.>=)S+)>@.Q0=0=

    Where do the 5#e#e +anagers e)change repositor% inor+ation?

    S@S+=M./0S+=>.)MMA2&.Q0=0=

    What are 7hanne6 Initiator?

    hannel initiator is the program that monitors the initiation queue and starts

    the sender MA

    What are channe6 6isteners?

     A channel listener program OlistensN for incoming networ5 requests and starts the appropriatereceiver channel when it is needed

    What is MQF-INFNF4EN option on the MQ4EN ca66 ?

    When this attribute is set it forces all the messages sent to this queue to be sent to the sameinstance of the queue !go to the same queue in cluster"

    ierence 9etween MQ4U and MQ4U1 ca66 ?+he MQ0+# call always operates as though MQ))B(2&B2)+B

  • 8/17/2019 webshere notes1

    20/76

    receiving queue manager could be on the same machine or another4 nearby or on the other side of the world. t could be running on the same platform as the local queue manager, or could be on any of the platforms supported by WebSphere MQ. +his is called a distributedenvironment.

    Message channels Message channel agents

    +ransmission queues hannel initiators and listeners

    hannel-e3it programs

    What is Message 7hanne6s and "ow +an% t%pes?

    Message channels are the channels that carry messages from one queue manager toanother.+hey are 0ni-directional hannels.

    #. Sender hannel '.>eceiver hannel

    $. Server hannel 9.>equester hannel

    %. luster-sender channel 1.luster-receiver channel

    What are MQI channe6s and there t%pes?

    MQ channels are the channels that carry messages from MQ lient application to the MQserver and vice versa.+hey are (i-directional hannels

    #. Server-connection $. lient-connection

    "ow +an% 7hanne6 7o+9inations?

    #.Sender-receiver hannel '.>equester-server hannel

    $.>equester-sender hannel 9. Server-receiver hannel

    %.luster-Sender- >eceiver hannel 1.lient-Server hannel

    hannel Attributes6

    (atch eartbeat nterval !(A+("6 +his heartbeat interval allows a sending channel toverify that the receiving channel is still active ?ust before committing a batch of messages. f the receiving channel is not active, the batch can be bac5ed out rather than becoming in-doubt, (atch interval !(A+2+", (atch si;e !(A+SP", hannel type !/+@=", luster !/0S+=>", luster namelist !/0S2/", onnection name !)22AM=", onvert message!)2D=>+", &isconnect interval !&S2+", eartbeat interval !(2+", IeepAlive nterval!IA2+", /ong retry count !/)2G>+@", /ong retry interval !/)2G+M>", Ma3imum messagelength !MA*MSG/"

    What is channe6 disconnect interva6?

    +his is a time-out attribute, specified in seconds, for the server, cluster-sender, and cluster-

  • 8/17/2019 webshere notes1

    21/76

    receiver channels. +he interval is measured from the point at which a batch ends, that iswhen the batch si;e is reached or when the batch interval e3pires and the transmission queuebecomes empty. f no messages arrive on the transmission queue during the specified timeinterval, the channel closes down

    E)p6ain the channe6 attri9#te -A7"SIE?

    (A+SP= denotes the ma3imum number of messages that can be sent through a channelbefore ta5ing a chec5point. +his parameter is valid only for channels with a channel type!/+@=" of S&>, SD>, >D>, >QS+>, /0SS&>, or /0S>D>. +he value must be inthe range # through JJJJ.

    What are the wa%s to start a channe6?

    0se the MQS command S+A>+ A22=/

    0se the control command runmqchl to start the channel as a process

    0se the channel initiator to trigger the channel

    +ype of channel states6

     nactive and urrent- Stopped, Starting, >etrying and Active

    What are the three options or stopping channe6s?

    Q0=S= = +=>M2A+=

    What are the co+ponents o +essage channe6?

     A queue manager to communicate with another queue manager uses message channel. +hecomponents of a message channel are

    1. Sender Message channel agent6 Sender MA is a program that transfers messages froma transmission queue to a communication lin5

    2. >eceiver MA6 t transfers messages from the communication lin5 into the target queue

    3. ommunication protocol6 >esponsible for transferring messages A message channel isunidirectional.

    What is M7A?

     A message channel agent !MA" is a program that controls the sending and receiving of messages. +here is one message channel agent at each end of a channel. )ne MA ta5esmessages from the transmission queue and puts them on the communication lin5. +he other MA receives messages and delivers them onto a queue on the remote queue manager.

    +ypes6 caller MA and responder  MA

    7hanne6 Errors?

  • 8/17/2019 webshere notes1

    22/76

    &ue to6 #. *mitq is set to get disabled $. 2etwor5 ssues

    %.QueueManager Stopped '. /istener is not running 9.+rigger+urned)ff 

    E)p6ain 7hanne6=E)it progra+s and what are the t%pes?

    hannel-e3it programs are called at defined places in the processing carried out by MAprograms

    Security =3it6 @ou can use security e3it programs to verify that the partner at the other end of a channel is genuine

    Message =3it6 Message =3it can be used for =ncryption on the lin5, message dataconversion, validation of user &,

    Message-retry =3it6 Message-retry e3it is called when an attempt to open the target queue isunsuccessful

    Sender and receiver =3it6 @ou can use the send and receive e3its to perform tas5s such asdata compression and decompression

    hannel auto-definition =3it  +ransport-retry =3it

    What happens i EA 6etter Q#e#e is not deined?

    f dead letter queue are not defined the Messages are placed on the +ransmission Queue andthe Queue Manager become nactive

    E)p6ain ;e+ote 5#e#e deinitions? Advantages?

    +hese are definitions for queues that are owned by another queue manager 

    Advantages' +he advantage of remote queue definitions is that they enable an application toput a message to a remote queue without having to specify the name of the remote queue or the remote queue manager, or the name of the transmission queue. +his gives you locationindependence.

    What is M#6ti=hopping?

    f the messages pass through one or more intermediate queue managers on the way to thetarget queue manager is 5nown as a multi-hop

    What is progra++a96e co++and or+at B47C co++ands?

    +hese commands are issued from a programme for local or remote administration done byprogrammers.

    What happens i channe6 ter+inates when ast non=persistent +essages are in transit?

    f a channel terminates while fast, non-persistent messages are in transit, the messages arelost and it is up to the application to arrange for their recovery if required. f the receivingchannel cannot put the message to its destination queue then it is placed on the dead letter 

  • 8/17/2019 webshere notes1

    23/76

    queue, if one has been defined. f not, the message is discarded.

    What happens when a +essage cannot 9e de6ivered?

    Message-retry6 f the MA is unable to put a message to the target queue for a reason thatcould be transitory !for e3ample, because the queue is full", the MA has the option to waitand retry the operation later 

    >eturn-to-sender6 f message-retry was unsuccessful, or a different type of error wasencountered, the MA can send the message bac5 to the originator 

    &ead-letter queue6 f a message cannot be delivered or returned, it is put on to the dead-letter queue !&/Q". @ou can use the &/Q handler to process the message

    >ecovery scenario 8 &is5 &rive 22G", $- call failed !MQB

  • 8/17/2019 webshere notes1

    24/76

    the message to other unit of wor5 that the application is performing. +he correlation identifier is a permanent property of the message, and persists across restarts of the queue manager 

    E)p6ain co++it and -ac> #t #nits o wor>?

    When a program puts a message on a queue within a unit of wor5, that message is madevisible to other programs only when the program commits the unit of wor5.

    ommit6 +o commit a unit of wor5, all updates must be successful to preserve data integrity. f the program detects an error and decides that the put operation should not be madepermanent, it can bac5 out the unit of wor5.

    (ac5 )ut6 When a program performs a bac5 out, WebSphere MQ restores the queue byremoving the messages that were put on the queue by that unit of wor5. +he way in which theprogram performs the commit and bac5 out operations depends on the environment in whichthe program is running

    -ac>o#t7o#nt BMQ*NGC?

    +his is a count of the number of times that the message has been previously returned by theMQG=+ call as part of a unit of wor5, and subsequently bac5ed out. (ac5outount is thenumber of times the application tried and failed to put the messages in the Queue

    What is segmentation and e3plain segmentation

  • 8/17/2019 webshere notes1

    25/76

    SA+0>2.Q0=0=.MA2AG=>

    Wh% is 7hanne6 ;E;=+>@2+ by default the retry interval is 17 seconds.

    >eceiver luster >eceiver >equester

    What is /ocal units of wor5 !uses a single-phase commit process" and Global unit of Wor5!uses a two-phase commit process"K

    /ocal unit of wor56 0nits of wor5 that involve only the queue manager are called local units of wor5. Syncpoint coordination is provided by the queue manager itself !internal coordination"using a single-phase commit process.

    0se global units of wor5 when you also need to include updates to resources belonging to

    other resource managers. ere the coordination can be internal or e3ternal to the queuemanager uses a two-phase commit

    Stopping a Q#e#e +anager +an#a66%?

  • 8/17/2019 webshere notes1

    26/76

    hannel listener, hannel nitiator, +rigger monitor etc

    "ow is A#to+atic deinition o channe6s done?

    f WebSphere MQ receives an inbound attach request and cannot find an appropriate receiver or server-connection channel or luster receiver in the channel definition file !&D, the command server iseither started automatically when the queue manager starts, or must be started manually.

    Start6 0sing strmqcsv saturn.queue.manager where saturn.queue.manager is the QM name

    &isplay6 dspmqcsv Stop6 endmqcsv

    When we use S& attribute of the A/+=> QMG> command to change the S& of theQM what are the components that need to be restartedK

    Stop and restart the queue manager, stop and restart command server !A command server processes command messages" and channel programs

    What is a MQ Series 7onig#ration i6e B+5s.iniCKQ#e#e +anager 7onig#ration i6eB5+.iniC?

     A queue manager configuration file !qm.ini" to effect changes for specific queue managers.+here is one qm.ini file for each queue manager on the node. !A queue manager configuration file, qm.ini, contains config information relevant to a specific queue manager.

    +here is one queue manager configuration file for each queue manager. +he qm.ini file isautomatically created when the queue manager with which it is associated is created.

  • 8/17/2019 webshere notes1

    27/76

    information relevant to all the queue managers on the node. t is created automatically duringinstallation. +he mqs.ini file for WebSphere MQ for 02* systems is in the varmqm directory.t contains6 v +he names of the queue managers v +he name of the default queue manager+he location of the files associated with each of them"

    "ow can we edit the conig#ration i6es?

     Automatically using commands that change the configuration of queue managers on thenode, Manually using a standard te3t editor 

    What is S?

  • 8/17/2019 webshere notes1

    28/76

    >estart recovery6  When you stop WebSphere MQ in a planned way.

    rash recovery6  When a failure stops WebSphere MQ.

    Media recovery6  +o restore damaged ob?ects.

    What are the 6ocations and i6es o the Error *ogging?(MEWebSphere MQEQmgrsETS@S+=MEerrors

    (MEWebSphere MQEerrorsà   AMQ=>>7#./)G, AMQ=>>7$./)G, AMQ=>>7%./)G

    What are the dierent t%pes o sec#rit% services avai6a96e in MQ Series?

    dentification Authentication

     Access control à +he access control service protects critical resources in a system by limitingaccess only to authori;ed users and their applications.

    onfidentiality à +he confidentiality service protects sensitive information from unauthori;eddisclosure

    &ata integrity à +he data integrity service detects whether there has been unauthori;edmodification of data. +here are two ways in which data might be altered6 accidentally, throughhardware and transmission errors, or because of a deliberate attac5, 2on-repudiation.

    Commands For Authorization:

    #.setmqaut6  ommand used to change the authori;ations to a profile, ob?ect or class ofob?ects. Authori;ations can be granted to, or revo5ed from, any number of principals

    or groups.

    $.dspmqaut6 ommand to display the current authori;ations to a specified ob?ect. f auser & is a member of more than one group, this command displays the combinedauthori;ations of all the groups.

    )nly one group or principal can be specified.

    %.dmpmqaut6 ommand to dump the current authori;ations to a specified ob?ect.

    What are the dierent +ethods hand6ed 9% MQ Series or sec#ring a +essage?

    ryptography Message digests

    &igital signatures &igital certificates

    ublic Iey nfrastructure !I"

    What is 7r%ptograph%K Wh% and where it is #sed in MQ Series?

    ryptography is the process of converting between readable te3t, called plainte3t, and an

  • 8/17/2019 webshere notes1

    29/76

    unreadable form, called cipher te3t.

    +he sender converts the plainte3t message to cipher te3t. +his part of the process is calledencryption !sometimes encipherment".+he cipher te3t is transmitted to the receiver. +hereceiver converts the cipher te3t message bac5 to its plainte3t form. +his part of the processis called decryption !sometimes decipherment".

    +he conversion involves a sequence of mathematical operations that change the appearanceof the message during transmission but do not affect the content. ryptographic techniquescan ensure confidentiality and protect messages against unauthori;ed viewing!eavesdropping", because an encrypted message is not understandable. &igital signatures,which provide an assurance of message integrity, use encryption techniques.

    What is a Message igestK igita6 Signat#re and igita6 7ertiicate?

    Message digest6 s also 5nown as a Message Authentication ode !MA", because it canprovide assurance that the message has not been modified. +he message digest is sent withthe message itself. +he receiver can generate a digest for the message and compare it with

    the senderNs digest. f the two digests are the same, this verifies the integrity of the message. Any tampering with the message during transmission almost certainly results in a differentmessage digest.

    &igital signature6 s formed by encrypting a particular representation of a message theencryption uses the private 5ey of the signatory and, for efficiency, usually operates on amessage digest rather than the message itself. &igital signatures vary with the data beingsigned, unli5e handwritten signatures, which do not depend on the content of the documentbeing signed. f two different messages are signed digitally by the same entity, the twosignatures differ, but both signatures can be verified with the same public 5ey, that is, thepublic 5ey of the entity that signed the messages.

    &igital certificates6 rovide protection against impersonation, because a digital certificatebinds a public 5ey to its owner, whether that owner is an individual, a queue manager, or some other entity. &igital certificates are also 5nown as public 5ey certificates, because theygive you assurances about the ownership of a public 5ey when you use an asymmetric 5eyscheme.

    What is a Sec#re Soc>ets *a%er BSS*CK where it is #sed?

    +he Secure Soc5ets /ayer !SS/" provides an industry standard protocol for transmitting datain a secure manner over an insecure networ5. +he SS/ protocol is widely deployed in bothnternet and ntranet applications. SS/ defines methods for authentication, data encryption,

    and message integrity for a reliable transport protocol, usually +.

    What are 7ipher S#ites and 7ipher Specs in SS*?

    ipher Suite6 s a suite of cryptographic algorithms used by an SS/ connection. A suitecomprises three distinct algorithms. +he 5ey e3change and authentication algorithm, usedduring the SS/ handsha5e. +he encryption algorithm, used to encipher the data.+he MA!Message Authentication ode" algorithm, used to generate the message digest.

    ipher Spec6 dentifies the combination of the encryption algorithm and MA algorithm. (oth

  • 8/17/2019 webshere notes1

    30/76

    ends of an SS/ connection must agree the same ipherSpec to be able to communicate.

    What are the steps to 9e o66owed in wor>ing with SS* on an UNI8 environ+ent?

    #.Setting up a 5ey repository $.Wor5ing with a 5ey repository

    %.)btaining personal certificates '.Managing digital certificates

    9.onfiguring for cryptographic hardware 1.Mapping &2s to user &s

    :.Adding personal certificates to a 5ey repository

    We9sphere MQ insta66ation na+ing consideration?

    =nsure that the machine name does not contain any spaces. f you insatall in such a machineyou cannot create and Queue managers. 2ames for userd and group must no longer that $7characters

     WebSphere MQ messages6

     Messages are made up of +wo parts6 Message descriptor, Application data

    +ypes of messagesK

    Datagram:   A Message sent with no response e3pected.

    Request:   A Message sent for which a response is e3pected.

    Reply:   A >esponse Message for a requested message.

    Report:   A Message that describes the occurrence or event

      =3 )A)&

    SiDes ?

    Qmanager à#7777 Msgs Ma3msglengthà' Mb

    Queueà9777 Msgs Ma3msglengthà' Mb

    What is 77SI?

    +his defines the character set of character data in the message. f you want to set thischaracter set to that of the queue manager, you can set this field to the constantMQSBQBMG> or MQSB2=>+. When you get a message from a queue, comparethe value of the odedharSetd field with the value that your application is e3pecting. f thetwo values differ, you might need to convert any character data in the message or use a data-conversion message e3it if one is available

    %pes o Q#e#e?

  • 8/17/2019 webshere notes1

    31/76

    /ocal Queue >emote Queues Alias Queues

    Model Queue &ynamic Queues luster Queues.

    Q#e#e'  A safe place to store messages for rior-+o-&elivery, it belongs to the Qmgr to whichthe application is connected.

    Mode6 Q#e#e' Model queue is a template of a queue definition that uses when creating adynamic queue.

    A6ias Q#e#e'  Queue definition, which is Alias to an actual /ocal or >emote Q. 0sed for security and easy maintenance.

    ;e+ote Q#e#e' )b?ect that defines a Queue belongs to another Q Manager !/ogical &ef".

    Initiation Q#e#e'  An initiation queue is a local queue to which the queue manager writes atrigger message when certain conditions are met on another local queue

    %na+ic Q#e#e'  Such a queue is defined Uon the flyU when the application needs it.&ynamic queues may be retained by the queue manager or automatically deleted when theapplication program ends. 0se- +o store intermediate results.

    76#ster Q#e#e' uster queue is a local queue that is 5nown throughout a cluster of queuemanagers.

    ;ep6%=o=Q#e#e'  A request message must contain the name of the queue into which theresponding program must put the >eply Message.

    Q#e#e Manager' rovides Messaging services and manages the Queues, hannels, androcesses that belongs to it.

    A6ias Q Manager' Queue-manager aliases, are created using a remote-queue definition witha blan5 >2AM=.

    7hanne6'  ommunication aths between Queue Managers.

    Default obects:  !"# obects$

    %ueues: S@S+=M.&=

  • 8/17/2019 webshere notes1

    32/76

      S@S+=M.A&[email protected]=0=

      S@S+=M.A&M2.)MMA2&.Q0=0=

      S@S+=M.A&M2.S+A+S+S.Q0=0=

      S@S+=M.A&M2.+>A=.>)0+=.Q0=0=

    Channels:  S@S+=M.A0+).>==D=> S@S+=M.A0+).SD>)22

      S@S+=M.&=D> S@S+=M.&=

      S@S+=M.&===D=> S@S+=M.&==Q0=S+=>

      S@S+=M.&= S@S+=M.&=D=>

    S@S+=M.&=)22

    &isteners:  S@S+=M.&=.+

      S@S+=M.&=.S*

      S@S+=M.&=.2=+()S

      S@S+=M.&=./01$

    'rocess Def:  S@S+=M.&=)=SS

    (ervices:  S@S+=M.&=D= S@S+=M.(>)I=>

    )ame &ists:  S@S+=M.&=.=D=2+

      S@S+=M.A&M2.=>.=D=2+

    What are advantages o creating A6iases? Wh% do we create A6ias?

    When sending messages6 >e mapping the queue-manager name when sending messages, Altering or specifying the transmission queue when sending messages, &etermining thedestination when receiving messages, 0sing a queue manager as a gateway into the cluster.Gives different application different levels of access authority to the target Queue Allowsdifferent applications to wor5 with the same queue in different way Simplifies maintenance,migration and wor5load balance

  • 8/17/2019 webshere notes1

    33/76

    What are the parameters required to put a message on a queue !or" putting a message onqueue parametersK

    >equires a onnection handler !conn", a Queue handler !ob?", a description of themessage that you want to put on the queue !MQM&", ontrol information, message length,the message data itself 

    Getting +essages or a 5#e#e?

    @ou can remove a message from the queue so that other programs can no longer see themessage, you can copy a message, leaving the original message on the queue. +his is5nown as browsing. @ou can remove the message once you have browsed it. n both cases,you use the MQG=+ call, but first your application must be connected to the queue manager,and you must use the MQ)=2 call to open the queue

    What are 4ersistent L Non=4ersistent +essages?

    ersistent messages survive system failures, as they are stored in system log files. owever non persistent message will be lost if a system failure occurs

    ersistent messages are used to ensure guaranteed delivery of messages to the targetqueue manager even if there are system failures, 2on-persistent messages are used whenthe source can reproduce the messages

    What happens when a +essage is p#t in a 4U=IN"I-IE Q#e#e?

    +he messages are put in the dead letter queue. f a channel is unable to put a message to thetarget queue because that queue is full or put inhibited, the channel can retry the operation anumber of times !specified in the message-retry count attribute" at a given time interval!specified in the message-retry interval attribute". Alternatively, you can write your ownmessage-retry e3it that determines which circumstances cause a retry, and the number of 

    attempts made. +he channel goes to A0S=& state while waiting for the message-retryinterval to finish

    What is s%ncpoints?

    Syncpoint coordination is the process by which units of wor5 are either committed or bac5edout with data integrity. +he decision to commit or bac5 out the changes is ta5en, in thesimplest case, at the end of a transaction. owever, it can be more useful for an application tosynchroni;e data changes at other logical points within a transaction.

    +hese logical points are called syncpoints !or synchroni;ation points" and the period of processing a set of updates between two syncpoints is called a unit of wor5

    What is a rigger +onitor?

     A trigger monitor is a continuously - running program that serves one or more initiationqueues. When a trigger message arrives on an initiation queue, the trigger monitor retrievesthe message. +he trigger monitor uses the information in the trigger message. t issues acommand to start the corresponding applicationchannel

    What are the rigger t%pes avai6a96e E)p6ain?

  • 8/17/2019 webshere notes1

    34/76

    E@E;

  • 8/17/2019 webshere notes1

    35/76

    messages were not being processed because of very high wor5load.

    F>esolution6 SS/

    FAuthentication failure6

    +he SS/ client does not have a certificate

     A certificate has e3pired or is not yet active

     A certificate is not supported

     A certificate is corrupted

    May be ssl version upgradation

    hannel refuses to run or channel retryK

    F>eason6 A mismatch of name between a sending and receiving channels, ncorrect channeltype specified, A receiver channel might be in stopped state, the connection might not bedefined orrectly, there might be a problem with communication software.

    F>esolution6 Alter the Queue and >==S the cluster to reflect the change in theinformation stored in the partial repository

    "and6ing +essages +ore than ! M-?

    ncrease the Queue and Queue manager Ma3Msg/ength attributes, 0se segmentedmessages !Messages can be segmented by either the application or the Queue manager",

    use reference message.

     A* !Advance nteractive *-change"

    Questions6

    Where are the AI8 6og i6es >ept?

      A* logs messages as specified in etcsyslog.conf 

    What is >proc?  s a 5ernelNs process

    What is AI8?   Advance nteractive *-change

    What is -c,c co++and?

     A simple calculator, &c command ta5es its input from the

  • 8/17/2019 webshere notes1

    36/76

    the specified conversions, then copies the converted data to the )ut eports information about space on file systems

    What is i co++and?

    ompares te3t files, t can compare single files or the contents of directories.

    What is # co++and?

    +he du command displays the number of bloc5s used for files

    What is c co++and?

    rocesses the command history list.

    What is grep co++and , grep co++and?

    Searches a file for a literal string.

    What is IEerne6?

     nteracts directly with the W and provides the service to the user programs

    What is She66 script?

     A shell is a command interpreter. +hat can interact with the Iernel through the shell!program". We can write AS !te3t" scripts to be acted upon by the shell

    What is a co++and?

  • 8/17/2019 webshere notes1

    37/76

     A command is a program that tells the uni3 system to do something.

    What will perform a long list on all files in the current directory and recursively perform the listthrough all sub-directories

    ls al>.

    What are 7ontro6 >e%s?

    0sed to perform special functions on the command line or within editor.

    ps e +his command counts the number of processes running on your computer system

    wc =6  +his command pipeline sort the output of the

    ps e   +his command counts the number of users logged into your computer system.

    who R wc =6  +he output of the who command is piped into the wc

    command, which counts the number of lines in the who output.

    grep +his command as a UsearchU command !most people wish it was named UsearchU". tis used to search for te3t strings within one or more files.

    ind +his command is very powerful. t can search the entire filesystem for one or more filesthat you specify to loo5 for. +his is very helpful when a file has been UlostU .=36

  • 8/17/2019 webshere notes1

    38/76

    a= append new te3t after a current character 

    o= )pen a new line after the current line and start inserting te3t

    D commands6

  • 8/17/2019 webshere notes1

    39/76

    within transactions. 2on persistent messages are lost if there is a transmission failure or if thechannel stops when the messages are in transit.

    What is SS*?

    Secure Soc5ets /ayer !SS/" is a protocol designed to allow the transmission of secure dataover an insecure networ5. SS/ ma5es use of digital certificates to enable authentication of the

    partner. t also uses encryption to prevent eavesdropping and hash functions to enabledetection of tampering. t can be used with both MA channels for queue manager to queuemanager communication and MQ channels for client applications connecting to a queuemanager 

    What are the a6gorith+s in SS*?

     A ipherSuite is a suite of cryptographic algorithms used by an SS/ connection. A suitecomprises three distinct algorithms6

     +he 5ey e3change and authentication algorithm, used during the SS/ handsha5e

     +he encryption algorithm, used to encipher the data

     +he MA !Message Authentication ode" algorithm, used to generate the message digest

    Clusters:

    Some important MQS commands that wor5 with cluster 

    &S/A@ /0SQMG> S0S=2& /0SQMG>

    >=S0M= /0SQMG> >==S /0S+=>

    >=S=+ /0S+=>

    What are the Advantages o c6#stering?

    Advantages'  >educed system administration

    ncreased high availability

    mproved resource utili;ation

    Wor5load sharing

    What is 76#ster 5#e#e +anager?

     A cluster Queue manager is a queue manager that is a member of a cluster. A queuemanager can be a member of more than one cluster 

    What happens when we give a ;eresh 76#ster +5sc co++and ?

    +his command issued on a queue manager, the queue manager discard all locally heldinformation about a cluster e3cept the

  • 8/17/2019 webshere notes1

    40/76

    perform a Xcold-startY on the cluster.

    "ow to re+ove a Q+gr ro+ 76#ster?

    àSuspend queue manager 

    à>emove the /0S>D> channel definition from the cluster by setting the /0S+=>

    attribute to empty

    àStop the /0S>D> channel

    à&elete the /0SS&> channel definition

    What happens when #66 c6#ster repositor% Q+gr goes down?

    f your queue manager is a full repository queue manager, alter the queue manager definitionto set the >=)S and >=)S2/ attributes to blan5. +his sends a notification to other queuemanagers advising them that they must stop sending cluster information to this queuemanager.

    When wi66 we #se ;ESE 7*USE; co++and?

    +o forcibly remove a queue manager from the cluster and resets the cluster 

    ow does a partial repository QM share information with other clusters when the full reposQM is downK

    +he cluster continues to wor5 with information from the other full repository. f both the fullrepositories are down, still the cluster continues to wor5 with available information from thepartial repository. A repository handles the request whenever possible but if the chosenrepository is not available another repos used. When the first repository becomes availableagain, it collects the latest new and changed information from the others so that the queuemanagers are 5ept in synch. +he repository queue manager send messages to each other tobe sure that they are both 5ept up to date with new information about the cluster 

    A6gorith+ or wor>6oad 9a6ancing?

     >ound >obin

    "ow do I set #p a c6#ster and add a new QM to a c6#ster?

     &etermine to which full repository the qmgr has to point to get cluster information, &efine the

    /0S>D> channel, &efine a /0SS&> channel on queue manager 

    7o+ponents o a c6#ster?

    +he components of a cluster are

    a group of queue managers.!more than one"

    luster receiver channel - to communicate with any cluster queue manager 

  • 8/17/2019 webshere notes1

    41/76

    luster sender channel- to communicate with any cluster queue manager 

    +he cluster sender channel points to a full repository queue manager 

    luster transmission queue

    )ne transmission queue to transmit message to any cluster queue

    luster queue

     A queue that is available to all cluster queue managers

    +ypes of cluster services ZZZZZZZZZZZZZZ&

    "ow +an% rans+ission Q#e#es are present in a Q#e#e +anager present in a 76#ster?

      )2=

    When defining a luster sender channel, for e3ample if there is more than one instance in thecluster what will happenK

     "ow +an% c6#ster channe6 deinitions are re5#ired or a QM in a c6#ster?

    +W) cluster channel definitions are required6 luster Sender channel and luster >eceiver channel

    What is 76#ster 5#e#e how is it deined?

     A cluster queue is a queue that is hosted by a cluster queue manager and made available toother queue managers in the cluster 

    +he cluster queue manager ma5es a local queue definition for the queue, specifying thename of the cluster where the queue is to be found. +his definition has the effect of showingthe other queue managers in the cluster that the queue is there. +he other queue managersin the cluster can put messages to a cluster queue without needing a corresponding remote-queue definition.

    What +a>es c6#stering wor>?

    &efining a cluster-receiver channel has the effect of introducing a queue manager to one of the full repository queue managers. +he full repository queue manager updates theinformation in its full repository accordingly. +hen it automatically creates a cluster-sender channel bac5 to the queue manager, and sends the queue manager information about thecluster. +hus a queue manager learns about a cluster and a cluster learns about a queuemanager.

    %pes o a6iases and re+ote=5#e#e deinitions with c6#sters?

    Queue-manager aliases, reply-to queue aliases, and queue aliases

    What is a gatewa% 5#e#e +anager and advantages o #sing in a c6#ster?

  • 8/17/2019 webshere notes1

    42/76

    +his enables wor5load balancing for messages coming from outside the cluster.

    "ow wi66 %o# >eep a c6#ster sec#re?

    Stopping the unauthori;ed Queue manager sending message to your Queue manager 

    Stopping unauthori;ed Queue manager putting messages on your Queues

    Stopping @our Queue manager putting messages to remote Queues

    reventing Queue manager from ?oining a cluster6 &efine a channel security e3it program

    channel

    &efine the /0SS&> channel on the QM

    >eview the application for message affinities

    >emoving a cluster queue from a Queue managerK

    ndicate the Queue is no longer available remove the /0S+=> name from the local queuedefinition !A/+=> Q/)A/!localqueue" /0S+=>!ON""

    &isable the Queue A/+=> Q/)A/!localqueue" 0+!&SA(/="

    Monitor the Queue until it is =M+@

    Monitor the channel to ensure that there is no in-doubt message

    &elete the Queue

    >emoving a Queue Manager form a lusterK

    Suspend the QM !S0S=2& QMG> /0S+=>!clusname""

    >emove the /0S>D> channel definition

    Stop the /0S>D> channel

    &elete the /0SS&> channel definition

    onverting an e3isting networ5 to clusterK

  • 8/17/2019 webshere notes1

    43/76

     Alter two QM to ma5e it a D> channel on each Queue manager

    &efine /0SS&> channel on each Queue Manager 

    &elete all remote Queue definitions for the e3isting networ5

    What is Wor>6oad 9a6ancing?

    When a cluster contains more than one instance of the same queue, WebSphere MQ uses awor5load management algorithm to determine the best queue manager to route a message.+he algorithm uses a round-robin approach to finali;e its choice between the suitable queuemanagers.

    ;e+oving a 76#ster networ>?

    >emove the cluster queues from the cluster 

    Stop all applications that have access to cluster Queue

    >emove the repository attribute from the full repository Queue manager 

     >emove luster channels on each Queue manager 

    ssue >==S cluster command on each Queue manager.

    -Which exit is used to perform compression during transmission?

    *end and (eceive ,it

    M 9ebsphere MQ interview Questions 2art - Middleware )ews ;M 9ebsphere MQ interview Questions 2art - Middleware )ews

  • 8/17/2019 webshere notes1

    44/76

    df -# df -h to chec# the dis# spacerpm &redhat pac#age manager'Create mqm userid and ma#e mqm as its primary group.the installation directory for mqm are opt/mqmthe wor#ing data is stored in var/mqm

    ./mqlicense.sh -accept --- to accept the licensethen run the commands to install all the pac#ages required. rpm -ivh pac#agenamerpm -ivh & i- install v- verbose h- hash format'to chec# the pac#ages installed rpm -qa B grep mq

    ps -ef B grep mq to end all the processes.

    . Command to #ill the process on 1inu?D ps u ----------to list all the processes.D #ill -E 2id -------------to #ill particular process...

    F. 6ow can you chec# the listener port is running from your des#top?),*0 8a

    G. +ifferences between persistent and non persistent messages?

    . 2ersistent msg%s are important$ at any cost those must be deliver to destination QM$if any problemoccur hose are placed in Hmitq or in +1Q.@. )onpersistent msg%s are not importantI if any problem occurs those are discarded.

    J. 6ow many Qmgrs are in your current pro"ect?)early KK.>. 6ow do you convert linear to circular?we don%t have that type of operation if you want to change$. irst stop the channels@. *top the QmgrA. a#e the bac# up of qmanager using save queue manager. +elete the QmgrF. (ecreate it with linear loggingG. (ecreate all the queue definitions and give the permission to the queues

    E. 6ow many applications connect to your current pro"ect?+isplay conn&L'K. 9hat is the bac#up Queue of the QM4(?+ead letter queue. 6ow you set 0uthentication?Using *,MQ0U$ this is used assign permissions to the user*,MQ0U -M QMname -n ob"name -t ob"type -p principle/-g group alldmpmqaut -m qmname -n ob"ectname -t ob"ecttype -p user to display set of all users given permissionon the ob"ectdspmqaut ------ to display set of all the permission for the user on the ob"ect@. 9ill you give permission only for U*,( or 4(5U2$ if 4(5U2 why?9e can assign permissions to user and if you want assign permissions to group also.if asign

  • 8/17/2019 webshere notes1

    45/76

    permissions to group that are assign all the user who are under that group.A. +ifference between (eceiver N (equester channel?requester and reciver are same ecept that the reuqesters can starts the sender from requester side.. (eason codes for @KAA$ @KFA$ @K>F$ @KAF$ @FAJO@KAA: Msg not available@KFA: Q full

    @K>F: un#nown ob" name@KAF: )ot authori!ed@FAJ: channel not available@KG &KJ,K' &(C@KG': MQ(CP4,P)6;,+@KAK &KJ,,' &(C@KAK': MQ(CPM*4P55P;4P5(PQ@KA &KJ,' &(C@KA': MQ(CPM*4P55P;4P5(PQPM4(@K@ &KJ0' &(C@K@': MQ(CP5;=,CP)PU*,@KF &K>KA' &(C@KF': MQ(CP2UP)6;,+@KFJ &K>KE' &(C@KFJ': MQ(CPQP32,P,((5(@KF> &K>K0' &(C@KF>': MQ(CPQPM4(P)0M,P,((5(@KFE &K>K;' &(C@KFE': MQ(CPQPM4(P)5P07010;1,

    F. 9hat are the errors we can get at the time of installation?. user is not a member of mqm group.@. *ome mq series processes are running while installing.

    >. 6ow do you connect MQ Client to MQ *erver?we have three types options for connecting client to server.MQC5))[email protected]*,(7,(A.Clientchannel tab

    E. Qmgr attributes?d,0+Q$(,25*&'$(,25*)1&'$C191U*,Q&'$M0H60)+*&'$M0H2(3&'@K. 9hat is listener and port?1istener is a program running continuously listening for request msg from sdr2ort:unique entry point for a QManager@. 9here the configuration information stores on 1inu and windows?in windows it is stored at registry. in linu it is stored in mqs.ini file.@@. 9hat is the difference between qm.ini and mqs.ini file?0 queue manager configuration file$ qm.ini$ contains information relevant to a specific queue manager.here is one queue manager configuration file for each queue manager. he qm.ini file is automaticallycreated when the queue manager with which it is associated is created.he 9eb*phere MQ configuration file$ mqs.ini$ contains information relevant to all the queuemanagers on a 9eb*phere MQ installation. t is created automatically during installation. n particular$the mqs.ini file is used to locate the data associated with each queue manager

    @A. +ifference between upgradation and migration?----R0n SupgradeS generally refers to an enhanced version of the software----Rif you migrate from a previous version of 9eb*phere MQ for 1inu$ you must uninstall yourcurrent version before installing 9eb*phere MQ 7ersion

    @. 9hich tool you use to connect with 1inu and mainframes?

  • 8/17/2019 webshere notes1

    46/76

    putty to connect to linu.telnet or ssh to connect to mainframes.

    @F. 6ow many channels we can create in +istribution Queuing for a Qmgr?5ne sender and receiver channel@G. f you create KK channels for a QmgrO 6ow can you create K Channel?

    )ormal way li#e:+efine chl&chlname' chltype&type' conname&pNport'

    @J. 0re you supporting for 1@ or 1A?1@

    @>. 9hich monitoring tool you are using? ;MC Main 7iew $ 0pp9atch

    @E. 3our mail server and chat server? &;asic questions'l5U*)5+,*$ sametimeMicrosoft outloo#$ office communicator

    AK. 0t which location your 1A team will be?Client location

    A. 6ow can you recover the damaged ob"ect and its synta?using media recovery we can recreate damaged ob"ectsrcrmqob" -m Qmname -t ob"type -n ob"name

    A@. Channel attributes?chltype&'$discint&'$batchhb&'$trptype&'$mamsgl&'$mitq&' conname&' rqmname&'AA. +ifferent status of channel?initiali!ing$binding$retrying$running$inactive$stopped$paused

    A. 9hy do we go for MQ Client?. )o need for a full 9eb*phere MQ implementation on the client machine.. 6ardware requirements on the client system are reduced.. *ystem administration requirements are reduced.. 0pplication running on a client can connect to multiple queue managers on different systems.. 0lternative channels using different transmission protocols can be used

    . (educe the burden on other clients

    AF. +o you raise any 2M( so far?i have never raised 2M(&problem management record'AG. 9ho send the tic#ets to you?users$ application team$ all the members who are involved in the current pro"ectAJ. 6ave you ever raised any tic#ets so far?yes.A>. 6ave you ever raised change order?)o

    K. +ifferences between MQ and M*4 Channels?

  • 8/17/2019 webshere notes1

    47/76

    MQ channels are used between MQ client and MQ sever$ those are bi-directionalypes: server connection channelClient connection channel

    M*4 channels are uni-directional$ and used between QM. *ender

    @. (eceiverA. Cluster sender.cluster rceiverF.serverG. ClientJ.requsterJK. +efault ob"ects in Cluster?*3*,M.C1U*,(.(,25*5(3.QU,U,*3*,M.C1U*,(.C5MM0)+.QU,U,*3*,M.C1U*,(.(0)*M**5).QU,U,Queues and channels.. +ifference between +ead-1etter 6eader and 6andler?if msg%a are come to +1Q$ QM will add dead letter header to msg$it contains reason for failure$destination queue and QM details such type of info%nusing dead letter handler you pic# the msg%s from +1Q placed it in destination queue@. 9hat is sync point?his is nothing but unit of wor# in two phase commitA. ell me something about unit of wor#?the period of updates between two sync points is called unit of wor#.. Can you change the log file si!e?)o.F. 9here the latest information stores in error logs and why?n the first file.G. Can you increase the no. of error logs?noJ. +o you run the runmqdlq program every time?+epending upon the messages those are coming to the +1Q.

    >. 9hat is the use of telnet$ ping and tracert?ping is used to chec# the status of remote channel.telnet is used for remote access of another system.it shows path ta#en to reach a particular destination over a networ#.

    E. 6ow can you connect to remote server from your des#top?Using M**CFK. 6ow many primary and secondary logs we can create on windows N 1inu &Ma'?windows:primary file:@F $secondary:@FAlinu:primary files:FK$secondary:FKE

    F. 9hat are the attributes of wor#load balance?+efbind&notfied'put&'clwluseq&local/any/QM4('

  • 8/17/2019 webshere notes1

    48/76

    clwlran#&K-E'clwlprty&K-E'clwlwght&'clwlmruse&'

    F@. 6ow can we ta#e the Qmgr bac#up?

    - create the bac#up queue manager- copy the data and log files from your primary queue manager over the bac#up queue managerTs dataand logs- flag bac#up qmgr as a bac#up and replay log etents &strmqm -r'- periodically copy over the log files prior to the CU((154 value from the queue managersaveqmgr -m MQP;0CU2 -r MQPCPK -f MQPCPK.tt

    FA. ,rror log file name?error log file name is:0MQ,((K$0MQ,((K@$0MQ,((KAF. 9hat is the use of client channel tables?Using client channel table we can connect with different QM%s and different clients will connect tosingle QM

    FF. 6ow many ma channels can connect to a Qmgr?he default for maimum channels is KK for qmgr. it can be set to higher in the qm.ini.

    FG. 6ow can you find the ma channels are connected to a Qmgr?dis qmstatus connsFJ. Channel components?chltype&' conname&' trptype&' mitq&' batchs!&' hbint&'F>. 9hat is the use of trig data in channel?which chnnel you want to up at trigger event fired.provide channel nameFE. 9hat does initiation queue contain?his will contains trigger massage generated by QMGK. Channel in doubt and in flight state?he )+5U; count specifies the number that were interrupted between phase- and phase-@ of thecommit process. hese must undergo forward recovery to ensure that resources modified by them areunavailable until their )+5U; status is resolved.

    he )146 count specifies the number that neither completed phase- of the commit process norbegan the process of bac#ing out. hese must undergo bac#ward recovery to restore resources modifiedby them to their previous consistent stateG. 6ow can we chec# whether the Qmgr contain +ead-latter queue or not?+* QM4( +,0+Q&L'G@. 9hat does contain in 0uto define channel?t contains channel name$ port )o. and p address hat are mentioned in the (eceiver channelGA. 6ow many servers$ Qmgrs in your environment?KK servers. KK qmgrs.G. 9hich programs you use for running the trigger monitor when you use your own initiationqueue?&in application and channel triggering'n application triggering we are using (U)MQ(Min channel (U)MQC6 )Q&'

  • 8/17/2019 webshere notes1

    49/76

    GF. 9hat is the default si!e of /var /mqm and /opt /mqm?0llow AK M; as a minimum for a 9eb*phere MQ server and F M; as a minimum for a 9eb*phereMQ client.->G @K mb iseries ->AGG. 9hat is the difference between Control N (unmqsc Commands?(U)MQ*C commands are used with in Qm for creating Qm ob"ects and altering QM4(.

    C5)(51 commands are used for creating starting and running QM$ and for set authentication ...GJ. n Cluster for (ound-(obin process defbind &open' what is happen?if you set defbind open$ all msg%s are placed where the first msg is place

    G>. 9hat is difference between distribution and clustering?in distributions queing we have to create more no of ob"ects li#e remoteqs. transmission ques andsender$ reciever channels for every remote queue manager.in clustering we can logically connect queue managers with the creation of less no.of qmgr ob"ects .GE. 9hy we go for clustering?.simplifying system [email protected]# load managementA.less no of qm ob"ects li#e rqd$ channels..high availabilityJK. +ifference between ull N 2artial (epository?ull repository: his will contains all the information of Cluster QMgrs and other ob"ects.2artial repository: his will Contains the information of that particular Qmgr and 5ther instances forcommunication.J. 9here do we find the cluster information?9e have one Queue i.e *3*,M.C1U*,(.(,25*5(3.QU,U,$ in that all the cluster info willstoredJ@. n cluster we have Qmgrs and having same instance in all Qmgrs have to send messages to aparticular Qmgr then how u configure?assign clwlran# and clwlprty for particular queue.

    JA. 9hy do we go clustering?we have so many advantages using cluster.administration tas# will be [email protected]# load balancingA.increase resource utili!ation.high availabilityJ. Components of the cluster?Clussend and clusrcvr channels*3*,M.C1U*,(.(,25*5(3.QU,U,*3*,M.C1U*,(.C5MM0)+.QU,U,*3*,M.C1U*,(.0)*M**5).QU,U, &2lease do not disable the put or get attribute oncluster' JF. 6ow to *uspend a Qmgr from the cluster?*uspend qmgr cluster &clusname'JG. 6ow to add eisting Qmgr into the cluster?f you add it as full repository$ you need to add repos #eyword to Qm$ and create one clussdr andclusrcvr channels$ add cluster attributes to other ob"ectsf you want to add it as partial repository$ create clusrcvr channel to that QM and a clussdr to a queuemanager in full repository and set cluster attribute to ob"ects

  • 8/17/2019 webshere notes1

    50/76

    JJ. 9hat is the use of alias queue?his queue is act as reference queue to local$ remote and cluster queue%s.the advantage of alias queue is. 6ide the details of reference queue to clients.@. used for follow the naming conventions$A. 2rovide different levels of access.

    9hy do we give VConname% at (eceiver Channel side in Cluster?n cluster sdr channels are auto generated$ based on the receiver channel attributes only the sdr channelwill generated

    J>. ( u configured **1 setup?yes.ssl address following important security [email protected] install and configure ssl we need. a server certificate #ey store.@. an https connectorJE. 9hich #ey u r using in **1?symmetric #ey--- secret #eys0symmetric #ey----------public private #ey pairs>K. 9hat is the command to see the authentications?+*2MQ0U: t will display the authenticated users. 9hat may be reasons for getting channel is in retrying state?. if other side receiver channel is not defined@. may channel was not started>. 9hat are the reasons for getting messages in dead letter queue?.if queue is full@. Queue put inhibited.A.Mag%s length is eceeded>@. 9hat happen to messages &persistenceN non persistence' if destination queue is full if there isno dead letter queue?2,(**,): if queue is full$ msg are coming bac# to mitq and channel will be going to retryingstate.)5)-2,(**,): hat type of msg%s are discarded.>A. 9hat is channel state in above case?retrying> el me some system default queues?.*3*,M.+,0U1.010*.QU,U,@.*3*,M.+,0U1.)05)*.QU,U,A.*3*,M.+,0U1.15C01.QU,U,.*3*,M.+,0U1.M5+,1*.QU,U,F.*3*,M.+,0U1.(,M5,..QU,U,>F.can we define remote queue defination without HMQ? is it wor#ing?we can define remote queue defination without HMQ$but HMQ name should be remote Queuemanager name.>G.can we ta#e the bac#up from HM queue massages?when you are trying to get the bac#up of mit queue massages$it will store error information the file. i.e

  • 8/17/2019 webshere notes1

    51/76

    @KGJ.6ow to ta#e bac#up of massages from queue?amqbcg Qname QMname R ,:/mq

    >>.how to increase no. of primary and secondary log files si!e?4o to registry edit$in that only you can change the number of primary and secondary files.after

    changing the number $imediatlly those are not effected$when the default primary files are full than onlyother files are come into picture.

    >E. 9hat are the different types of 1ogs?9e have two types of logs.. ransactional logs:@. ,rror logs.EK. +ifference between ,rrors and Qmgr errors?,rrors: his will contain all */9 level errors and nformationQM4(:his will contains all the information of QM4( ob"ects and errorsE. 6ow you enable race?L 5r start a high detail trace for one queue manager:strmqtrc -t all -t detail -m M3.QM4(L 5r start a high detail wrapping trace and limit the file si!e to FM; :strmqtrc -l F -t all -t detail -m M3.QM4(

    W ,nd all tracing:endmqtrc -aW ormat the trace files:dspmqtrc L.(C5r format wrapping trace files:dspmqtrc L.(C L.(*

    E@. 9hat does the +C contain?+C ile:ailure data capture$f any */9 related error occurs this file will be created$in +C we haveprob-d based on that we will find the solution in ;M ech notes.probiduseridapplication namema"or error codeminor error codeproblem civiertyprobtypeprocess

    EA. 9hich types of 1ogs are using in your 5rgani!ation?+epending upon client requirement we are using both linear and circular loggingsE. 6ow you chec# the *tatus of the Queue?dis qs&qname' type&handle'EF. +efault path of the ,rror logs N ransaction 1ogs?n windows:X2rogram filesX;M/9eb spear MQX1ogX QmgrsXactiveC:X2rogram fileX;MX9eb spear MQXQmgrsXQMnameX,rrorsn Uni:/var/mqm/log/Qmgrs/active

  • 8/17/2019 webshere notes1

    52/76

    /var/mqm/Qmgrs/Qmname/errors

    EG. 9hat is the use of 2(5;+ in dc?Using 2rob+: we can find the solution in ;M info center$ f before anybody face that problem$otherwise we will rise 2M(&problem management report' and it will contains 0pplication name$ ma"orerror$ minor error and so on..

    EJ. +ifference stopping status of QM4(s?,nd immediately$ ,nd abnormally$ ended normallyE>. 6ow do you enable the rigger?we need to set some properties on queue%srigger onrigtype &irst/every/depth'rigdepthrigdata&chalname'initq&'

    9hat is MQ and what does it do?

    0ns. MQ stands for M,**04, QU,U,)4. 9eb*phere MQ allows application programs to usemessage queuing to participate in message-driven processing. 0pplication programs can communicateacross different platforms by using the appropriate message queuing software products.

    9hat is Message driven process?

    0ns . 9hen messages arrive on a queue$ they can automatically start an application using triggering. fnecessary$ the applications can be stopped when the message &or messages' have been processed.

    9hat are advantages of the MQ?

    0ns. . ntegration.

    @. 0synchrony

    A. 0ssured +elivery

    . *calability.

    6ow does it support the ntegration?

    0ns. ;ecause the MQ is independent of the 5perating *ystem you use i.e. it may be 9indows$*olaris$0H.t is independent of the protocol &i.e. C2/2$ 1UG.@$ *)0$ )et;5*$ U+2'.t is notrequired that both the sender and receiver should be running on the same platform

    9hat is 0synchrony?

    0ns. 9ith message queuing$ the echange of messages between the sending and receiving programs isindependent of time. his means that the sending and receiving application programs are decoupledIthe sender can continue processing without having to wait for the receiver to ac#nowledge receipt of

  • 8/17/2019 webshere notes1

    53/76

    the message. he target application does not even have to be running when the message is sent. t canretrieve the message after it is has been started.

    9hat are the hardware and *oftware requirements for MQ nstallation in 0H?

    0ns. 9eb*phere MQ for 0H$ 7F.A runs on any machine that supports the 0H 7.A.A 2ower2C

    [email protected]$ or 0H 7F. 2ower A@ bit only operating system.

    +is# *torage: ypical storage requirements are as follows:

    *erver installation: FK M;

    @. Client installation: F M;

    A +ata storage &server': FK M;

    . +ata storage &client': F M;.

    *oftware (equirements:

    5perating system: he operating systems supported by 9eb*phere MQ for 0H$ 7F.A are:

    . 0H 7.A.A$ with 2 UJ@JJ$ running in a A@ bit environment$ on A@ or G bit hardware.

    @. 0H 7F.$ with 2s UJG>JE$ UJJAGG$ UJJAGJ and UJJAG>$ and 020( fi 3@EAF runningA@ bit #ernel running on A@ or G bit hardware.

    A. 0H 7F.$ with 2 UJG>JE$ UJJAGG$ UJJAGJ and UJJAG>$ and 020( fi 3@EAF runningG bit #ernel running on G bit hardware.

    Connectivity he networ# protocols supported by 9eb*phere MQ for 0H$ 7F.A are:

    . C2/2

    @. *)0 1U G.@.

    +atabases: +;@ J.$ J.@

    5racle >i and Ei

    *ybase v@ or v @.F

    =ava: f you want to use the =ava Messaging *upport$ you need the =ava (untime ,nvironment 7ersion.A or later

    9hat are the software and hardware requirements for installing MQ on 9indows?

    0ns: MQ v F.A supports 9indows @KKK$ 9indows @KKKH2$9indows @KKK)$

  • 8/17/2019 webshere notes1

    54/76

    9indows @KKA *,$ 9indows @KKA,,.

    +is# *torage: ypical storage requirements are as follows:

    *erver installation: FK M;

    @. Client installation: F M;

    A +ata storage &server': FK M;

    . +ata storage &client': F M;.

    Connectivity he networ# protocols supported by 9eb*phere MQ for 0H$ 7F.A are:

    . C2/2

    @. *)0 1U G.@.

    A. 1U G.@

    . )et;5*

    +atabases: +;@ J.$ J.@

    5racle >i and Ei

    *ybase v@ or v @.F

    =ava: f you want to use the =ava Messaging *upport$ you need the =ava (untime ,nvironment 7ersion.A or later

    what is a Message and what does it contain?

    0ns: 0 message is a string of bytes that is meaningful to the applications that use it. Messages are usedto transfer information from one application program to another &or between different parts of the sameapplication'. he applications can be running on the same platform$ or on different platforms.

    9eb*phere MQ messages have two parts:

    . he application data. he content and structure of the application data is defined by the applicationprograms that use it.

    @. 0 message descriptor. he message descriptor identifies the message and contains additional controlinformation$ such as the type of message and the priority assigned to the message by the sendingapplication. 9eb*phere MQ defines the format of the message descriptor. or a complete descriptionof the message descriptor$

    9hat is the Ma 1ength of the message does MQ support/

  • 8/17/2019 webshere notes1

    55/76

    0ns: he default maimum message length is M;$ although you can increase this to a maimumlength of KK M; &where M; equals K> FJG bytes'.

    9hat is the difference between 2ersistent and )on 2ersistent Messages?

    0ns: n 9eb *phere MQ$ messages can be either persistent or non persistent. 2ersistent messages are

    logged and can be recovered in the event of a 9eb*phere MQ failure. hus$ persistent messages areguaranteed to be delivered once and only once. )onpersistent messages are not logged. 9eb *pherestill guarantees to deliver them not more than once$ but it does not promise to deliver them once.

    9hat is the effect of using 2ersistant messages?

    0ns: 2ersistent messages are usually logged. 1ogging messages reduces the performance of yourapplication$ so use persistent messages for essential data only. f the data in a message can be discardedif the queue manager stops or fails$ use a nonpersistent message.

    9eb*phere MQ messages:

    Messages are made up of wo parts: Message descriptor$ 0pplication data

    ypes of messages?

    +atagram: 0 Message sent with no response epected.

    (equest: 0 Message sent for which a response is epected.

    (eply: 0 (esponse Message for a requested message.

    (eport: 0 Message that describes the occurrence or event

    , C50/C5+*i!es ?

    QmanagerYKKKK Msgs MamsglengthY Mb

    QueueYFKKK Msgs MamsglengthY Mb

    9hat is the attribute used to see the Message length?

    0ns: MaMsg1ength

    9hat is MQ Client?

    0ns: 0 9eb *phere MQ client is a component that allows an application running on a system to issueMQ calls to a queue manager running on another system. he output from the call is sent bac# to theclient$ which passes it bac# to the application.

    9hat is MQ *erver?

  • 8/17/2019 webshere notes1

    56/76

    0ns: 0 9eb *phere MQ server is a queue manager that provides queuing services to one or moreclients. 0ll the 9eb *phere MQ ob"ects$ for eample queues$ eist only on the queue manager machine&the 9eb *phere MQ server machine'$ and not on the client. 0 9eb *phere MQ server can also supportlocal 9eb *phere MQ

    0pplications

    9hat are the 5b"ects used in 9eb sphere MQ?

    0ns: . Queue Manager @. Queues

    A. Channels . 2rocesses F. )ame lists.

    Mention the )o of Characters required for creating names of the MQ ob"ects?

    0ns: or MQ Channels it is @K Characters

    or (emaining ob"ects it is > characters.

    9hat about is the +efault port number for MQ Queue Manager?

    0ns: +ifference between MQ*C commands and Control commands?

    MQ*C Commands 8 hese commands are used to handle the admin related functions for thecomponents that are present in the MQ *eries. n general MQ*C commands are used for creating andmaintaining Message channels$ Queue Managers$ Clusters etcO

    Control Commands 8 hese commands are used to manage the processes and services that are helpfulin the functioning of the MQ *eries. n general these commands are used for Channel listener$ Channelnitiator$ rigger monitor etcO

    s the MQ*C attributes are Case sensitive?

    0ns: MQ*C commands$ including their attributes$ can be written in uppercase or lowercase. 5b"ectnames in MQ*C commands are folded to uppercase &that is$ QU,U, and queue are not differentiated'$unless t