You are on page 1of 11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2
0

More NextBlog

CreateBlog SignIn

MiddlewareNews
Sunday,August1,2010

IBMWebsphereMQinterviewQuestionsPart2
WhatisQueue?
Ans:Aqueueisadatastructureusedtostoremessages.Aqueuemanagerownseach
queue.Thequeuemanagerisresponsibleformaintainingthequeuesitowns,andfor
storingallthemessagesitreceivesontotheappropriatequeues
WhatistheDefaultmaxQueuedepth?
Ans5000
TypesofQueues?
LocalQueueRemoteQueuesAliasQueues
ModelQueueDynamicQueuesClusterQueues.
Queue:AsafeplacetostoremessagesforPriorToDelivery,itbelongstotheQmgrto
whichtheapplicationisconnected.
ModelQueue:Modelqueueisatemplateofaqueuedefinitionthatuseswhencreatinga
dynamicqueue.
AliasQueue:Queuedefinition,whichisAliastoanactualLocalorRemoteQ.Usedfor
securityandeasymaintenance.
RemoteQueue:ObjectthatdefinesaQueuebelongstoanotherQManager(LogicalDef).

Followers

Jointhissite
withGoogleFriendConnect

InitiationQueue:Aninitiationqueueisalocalqueuetowhichthequeuemanagerwritesa
triggermessagewhencertainconditionsaremetonanotherlocalqueue

Members(84) More

DynamicQueue:Suchaqueueisdefinedontheflywhentheapplicationneedsit.
Dynamicqueuesmayberetainedbythequeuemanagerorautomaticallydeletedwhen
theapplicationprogramends.UseTostoreintermediateresults.
ClusterQueue:Custerqueueisalocalqueuethatisknownthroughoutaclusterofqueue
managers.
ReplyToQueue:Arequestmessagemustcontainthenameofthequeueintowhichthe
respondingprogrammustputtheReplyMessage.
QueueManager:ProvidesMessagingservicesandmanagestheQueues,Channels,and
Processesthatbelongstoit.
AliasQManager:Queuemanageraliases,arecreatedusingaremotequeuedefinition
withablankRNAME.
WhataretheattributesrequiredfortheRemoteQueueDefinition?
Ans:1.NameoftheQueue2.TransmissionQueueName.

Alreadyamember?Signin

MiddlewareNews

GeneralTopics(27)
IBMMessageBroker(50)
IBMProcessServer(3)
IBMWebsphere(177)
IBMWebsphereMQ(347)
messagebroker(38)
Middlewarenews(354)
mq(165)

3.RemoteQueueManagername4.RemoteLocalQueueName

pettavaithalai(3)
Technology(71)

HowcanUdefineQueuesinMQ?

WebsphereMQ(170)

Ans:QueuesaredefinedtoWebSphereMQusing:
BlogArchive

1.TheMQSCcommandDEFINE
2.ThePCFCreateQueuecommand

2016(12)
2015(43)
2014(50)

WhatisTransmissionQueue?
Ans:Transmissionqueuesarequeuesthattemporarilystoremessagesthataredestined
foraremotequeuemanager.Youmustdefineatleastonetransmissionqueueforeach
remotequeuemanagertowhichthelocalqueuemanageristosendmessagesdirectly.

2013(37)
2012(88)
2011(60)
2010(161)
December(2)

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

1/11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2
WhatisInitiationQueues?
Ans:Initiationqueuesarequeuesthatareusedintriggering.Aqueuemanagerputsa
triggermessageonaninitiationqueuewhenatriggereventoccurs.Atriggereventisa
logicalcombinationofconditionsthatisdetectedbyaqueuemanager.
WhatisDeadLetterQueue?

November(6)
October(5)
September(21)
August(91)
Configuringandtuning
WebSphereMQfor
performanc...

Ans:Adeadletter(undeliveredmessage)queueisaqueuethatstoresmessagesthat
cannotberoutedtotheircorrectdestinations.Thisoccurswhen,forexample,the
destinationqueueisfull.Thesupplieddeadletterqueueiscalled
SYSTEM.DEAD.LETTER.QUEUE.Fordistributedqueuing,defineadeadletterqueueon
eachqueuemanagerinvolved.

Securityconsiderationsfor
distributedqueuing(u...

WhatistheMaxsizethatQueuessupportinMQv5.3?

Settingupakeyrepositoryon
UNIXandWindowssy...

Ans.Theysupportaround2GBofSize

HowtoConfigureSSLforthe
MQSCAdapterMiddle...

HowcanucreateaTransmissionQueuefromalocalQueue?

ProblemDeterminationIBM
WebsphereProductsAIXP...

Ans.ChangetheusageattributefromnormaltoTransmission

IBMWebSphereMQChannel
SecuritywithSSLMQand...

DefineaLocalQueueLQusingtheMQSCCommandsintheQMQM1

as400commandsiSeries
as400commandslist...

Ans:runmqscQM1

ApplicationIntegrationwith
WebSphereMessageBro...

Defineqlocal(LQ)
WhataretheDifferenceB/WPredefined&DynamicQueues?
Ans:Queuescanbecharacterizedbythewaytheyarecreated:
1.PredefinedqueuesarecreatedbyanadministratorusingtheappropriateMQSCor
PCFcommands.Predefinedqueuesarepermanenttheyexistindependentlyofthe
applicationsthatusethemandsurviveWebSphereMQrestarts.
2DynamicqueuesarecreatedwhenanapplicationissuesanMQOPENrequest
specifyingthenameofamodelqueue.Thequeuecreatedisbasedonatemplatequeue
definition,whichiscalledamodelqueue.

Configuringyoursystemtouse
theSecureSockets...
Deletingacertificatefromakey
repositoryonUN...

IBMwebspheretransformation
extender/websphere...
SOA/WhatisServiceOriented
Architecture?SOA...
IMS/InformationManagement
SystemMiddlewareN...
HowtheWebSphereMQIMS
bridgedealswithmessage...
CICSCommands/CICS
commandsummary/cics
comman...
CICSCommands/CICS
commandsummary/cics
comman...

WhatistheAlgorithmfollowedinretrievingtheMessagesfromtheQueue?

WMQApplicationIntegration
2009WP3rdEdFINAL

Ans:1.Firstinfirstout(FIFO).

CICS/whatisCICS?

2.Messagepriority,asdefinedinthemessagedescriptor.Messagesthathavethesame
priorityareretrievedonaFIFObasis.

IBMWebSphereMQFor
iSeriesBestPracticesGuide
...

3.Aprogramrequestforaspecificmessage.

IBMWebSphereMQforz/OS
SecurityMiddlewareNe...

WhatisProcessDefinitionandwhataretheattributesdoesitcontain?

IBMWebSphereMQV6
Overviewwithz/OSfocus
Mid...

Ans:Aprocessdefinitionobjectdefinesanapplicationthatstartsinresponsetoatrigger
eventonaWebSphereMQqueuemanager.Theprocessdefinitionattributesincludethe
applicationID,theapplicationtype,anddataspecifictotheapplication.
Whatisintercommunicationanditscomponentstosendmessage?
WhatisIntercommunication?
Ans:InWebSphereMQ,intercommunicationmeanssendingmessagesfromoneQueue
managertoanother.Thereceivingqueuemanagercouldbeonthesamemachineor
anothernearbyorontheothersideoftheworld.Itcouldberunningonthesameplatform
asthelocalqueuemanager,orcouldbeonanyoftheplatformssupportedbyWeb
SphereMQ.Thisiscalledadistributedenvironment.

IBMWebSphereMQforz/OS
SystemAdministrationGu...
WebsphereMQforZOS/MQ
SeriesforzosMidd...
AMQ8000AMQ8999
WebSphereMQ
administrationmessag...
AMQ8000AMQ8999
WebSphereMQ
administrationmessag...
IBMWebSphereMQMetrics
MiddlewareNews

MessagechannelsMessagechannelagents

OracleEnterpriseManager/
MiddlewareNews

TransmissionqueuesChannelinitiatorsandlisteners

Workingwithlocalqueues
MiddlewareNews

Channelexitprograms

SSLDigitalCertificates/SSL
MiddlewareNews

WhatisDistributedQueueManagement(DQM).

WebsphereMessageBroker
InterviewQuestionsMid...

WebSphereMQhandlescommunicationinadistributedenvironmentsuchasthisusing
DQM.Thelocalqueuemanagerissometimescalledthesourcequeuemanagerandthe
remotequeuemanagerissometimescalledthetargetqueuemanagerorthepartner
queuemanager.
WhatistheObjectsrequiredfortheDQM?
Ans:OnsourceQueueManager:

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

wasinterviewquestions/IBM
WASinterviewQuesti...
wasinterviewquestions/IBM
WASinterviewQuesti...
wasinterviewquestions/IBM
WASinterviewQuesti...
IBMWebsphereMQinterview
QuestionsPart8Midd...
IBMWebsphereMQinterview
QuestionsPart7Midd...

2/11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2
1.TransmissionQueue2.Remotequeuedefinition.

IBMWebsphereMQinterview
QuestionsPart6Midd...

3.DeadLetterQueue(recommended)4.SenderChannel

WhatisCloudComputing?/
cloudcomputing/What...

OnTargetQueueManager

datacentermanagement

1.LocalQueue2.DeadLetterQueue3.ReceiverChannel4.Listenr

EnterpriseIntegration/Whythe
EnterpriseServic...

***.Thesenderandreceiverchannelsnamesshouldbesame.

OracleFusionMiddleware/
oraclefusion

WhatischannelandmentiondifferenttypesofchannelsinMQ?

IPhoneZosModernization
Demov2.0/Zos

Ans:Channelsareobjectsthatprovideacommunicationpathfromonequeuemanager
toanother.Channelsareusedindistributedqueuingtomovemessagesfromonequeue
managertoanother.Theyshieldapplicationsfromtheunderlyingcommunications
protocols.Thequeuemanagersmightexistonthesame,ordifferent,platforms.Different
typesofChannels:
1.SenderReceiverChannels
2.RequesterServerChannels
3.ClientConnectionchannels
4.ServerConnectionChannels.
5.ClusterSender.
6.ClusterReceiverChannels
WhatareMQIchannelsandtheretypes?
MQIchannelsarethechannelsthatcarrymessagesfromMQClientapplicationtothe
MQserverandviceversa.TheyareBidirectionalChannels
1.Serverconnection2.Clientconnection
HowmanyChannelCombinations?
1.SenderreceiverChannel4.RequesterserverChannel
2.RequestersenderChannel5.ServerreceiverChannel
3.ClusterSenderReceiverChannel6.ClientServerChannel
WhataretheattributesrequiredfortheSenderChannel?

WebSphere7
TechnicalIntroductiontoIBM
WebSphereMQV7/IB...
IBMWebSphereProcess
ServerV6.1/
Administration...
MessageBroker(WMB)
installationandsetupon
Lin...
SettingupMessageBroker
environment
Applymaintenanceupdates
andprogramfixestoMes...
ResponsefilesforMessage
Brokerinstallation/Uni...
Middleware/whatis
middleware?/middleware
defi...
IBMwebspheremqclient/
webspheremqclient
whatismiddleware/
middlewaretechnologies/
ibm...
middleware2010/middleware
conference2010
IBMWebSphereMessage
Broker/Realtime
Monitorin...
IBMSystemz10/IBMClient
ReferenceVideoOnTh...
IntroductiontoIBMSystemz10
/IBMSystemz10

Ans:1.TheNameoftheChannel4.TransportType

WebSphereMQforzOSV7
DataSheet/webspheremq
...

2.TheConnectionname5.Scyexit

z/OS/zosbasics/zos
versions

WhataredifferentChannelstatus?

ibmwebspheremq/
webspheremq/websphere
mq7

Ans:ChannelStatus:

Mainframez/OSBasics/
IntroductiontotheNewMa...

1.Inactive3.Retrying

OperatingSystems/operating
system

2.Running4.Stopped
WhataboutInitializing&Bindingstates?

WebSphere(R)MQFile
TransferEditionV7.0File
...

Ans:Beforerunningstatefirstthechannelwillinitializesthelistener&Bindswiththe
ReceiverChannelthenitgoesintorunningmode.

WebSphereMQwithSolaris
Zones/ibmWebSphere
MQ...

TellmeSomeChannelAttributes?

IBMWebSphereMQSystemz/
ibmwebspheremqzos

BatchHeartbeatInterval(BATCHHB):Thisheartbeatintervalallowsasendingchannel
toverifythatthereceivingchannelisstillactivejustbeforecommittingabatchof
messages.Ifthereceivingchannelisnotactive,thebatchcanbebackedoutratherthan
becomingindoubt,Batchinterval(BATCHINT),Batchsize(BATCHSZ),Channeltype
(CHLTYPE),Cluster(CLUSTER),Clusternamelist(CLUSNL),Connectionname
(CONNAME),Convertmessage(CONVERT),Disconnectinterval(DISCINT),Heartbeat
interval(HBINT),KeepAliveInterval(KAINT),Longretrycount(LONGRTY),Longretry
interval(LONGTMR),Maximummessagelength(MAXMSGL)
WhyisChannelRETRYINTattributeused?
IfamessageisplacesinDLQbecauseofputinhibitedorqueuefullcondition,theDLQ
handlerattemptstoputthemessagebacktothedestinationqueue.Thisintervaliscalled
asRETRYINTbydefaulttheretryintervalis60seconds.
ReceiverClusterReceiverRequester
Whatischanneldisconnectinterval?

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

VeritasHighAvailability
AgentforWebSphereMQ...
WebsphereMQinstallationon
Linux/WebsphereMQ...
IBMWebsphereMQ/Whatis
FFST?
SSL/Determiningwhether
SSLconnectionshavebee...
IBMMQSeriesPrimer/
MQSeries/ibmmqseries/
M...
WebSphereMQApplication
ProgrammingReference/
W...
IBMWebsphereMQproblems
incluster/mqproblems...
IBMWebSphereMessage
BrokerBasics/IBM
WebSpher...

3/11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2
Thisisatimeoutattribute,specifiedinseconds,fortheserver,clustersender,and
clusterreceiverchannels.Theintervalismeasuredfromthepointatwhichabatchends,
thatiswhenthebatchsizeisreachedorwhenthebatchintervalexpiresandthe
transmissionqueuebecomesempty.Ifnomessagesarriveonthetransmissionqueue
duringthespecifiedtimeinterval,thechannelclosesdown
ExplainthechannelattributeBATCHSIZE?
BATCHSIZEdenotesthemaximumnumberofmessagesthatcanbesentthrougha
channelbeforetakingacheckpoint.Thisparameterisvalidonlyforchannelswitha
channeltype(CHLTYPE)ofSDR,SVR,RCVR,RQSTR,CLUSSDR,orCLUSRCVR.
Thevaluemustbeintherange1through9999.
WhatisBATCHHEARTBEATINTERVAL?
Ans:Thebatchheartbeatintervalallowsasendingchanneltoverifythatthereceiving
channelisstillactivejustbeforecommittingabatchofmessages,sothatifthereceiving
channelisnotactive,thebatchcanbebackedoutratherthanbecomingindoubt,as
wouldotherwisebethecase.Bybackingoutthebatch,the
messagesremainavailableforprocessingsotheycould,forexample,beredirectedto
anotherchannel.
WhatisKeepAliveInterval?
Ans:TheKeepAliveIntervalparameterisusedtospecifyatimeoutvalueforachannel.
TheKeepAliveIntervalparameterisavaluepassedtothecommunicationsstack
specifyingtheKeepAlivetimingforthechannel.Itallowsyoutospecifyadifferentkeep
alivevalueforeachchannel.Thevalueindicatesatime,inseconds,andmustbeinthe
range0to99999.
WhatisLONGRetrycount?
Ans:Specifythemaximumnumberoftimesthatthechannelistotryallocatingasession
toitspartner.Iftheinitialallocationattemptfails,theshortretrycountnumberis
decrementedandthechannelretriestheremainingnumberoftimes.
Whatarethewaystostartachannel?
UsetheMQSCcommandSTARTCHANNEL
Usethecontrolcommandrunmqchltostartthechannelasaprocess

WebSphereMessageBroker/
IntroductiontoWebSphe...
WebsphereMQMessaging
BackboneforSOA/
WS_MQ_Me...
IBMWebSphereMQ
Triggering_GUIguide/IBM
WebSph...
IBM000374:IBMWebSphere
MQV7.0/WebSphereMQ...
OverviewofIBMWebSphere
MQClustering/IBMWebS...
IBMWebSphereMQV7
Implementationfor
Experienced...
BPMvsSOAvsITIL/
WhatisServiceOriented
Architecture?SOA/What...
TechnicalIntroductiontoIBM
WebSphereMQV7/In...
IBMWebSphereMQ/ibm
webspheremqtutorial
WhyWebSphereApplication
Server/WhyWebSphere
A...
webspheremqinstallation/
WebSphereMQV7Demo
ibmwebspheremqcommands
/webspheremqcommands
...
webspheremqproblem
determination/problem
dete...
MQV7/WebSphereMQV7.0
Featuresand
Enhancement...
IBMWebsphereMQinterview
QuestionsPart5
IBMWebsphereMQinterview
QuestionsPart4Midd...

Usethechannelinitiatortotriggerthechannel

IBMWebsphereMQinterview
QuestionsPart3Midd...

Typeofchannelstates:

IBMWebsphereMQinterview
QuestionsPart2

InactiveandCurrentStopped,Starting,RetryingandActive
Whatarethethreeoptionsforstoppingchannels?
QUIESCEFORCETERMINATE
Whatarethecomponentsofmessagechannel?
Aqueuemanagertocommunicatewithanotherqueuemanagerusesmessagechannel.
Thecomponentsofamessagechannelare

IBMWebsphereMQinterview
QuestionsPart1Midd...
July(36)
2009(55)

Enteryouremailaddress:

1.SenderMessagechannelagent:SenderMCAisaprogramthattransfersmessages
fromatransmissionqueuetoacommunicationlink
2.ReceiverMCA:Ittransfersmessagesfromthecommunicationlinkintothetarget
queue

Subscribe
DeliveredbyFeedBurner

3.Communicationprotocol:ResponsiblefortransferringmessagesAmessagechannel
isunidirectional.
WhatisMessageChannelagent(MCA)?
Ans:Amessagechannelagent(MCA)isaprogramthatcontrolsthesendingand
receivingofmessages.Thereisonemessagechannelagentateachendofachannel.
OneMCAtakesmessagesfromthetransmissionqueueandputsthemonthe
communicationlink.TheotherMCAreceivesmessagesanddeliversthemontoaqueue
ontheremotequeuemanager.

AboutMe

Karthick

AmessagechannelagentiscalledacallerMCAifitinitiatedthecommunication
otherwiseitiscalledaresponderMCA.

Viewmycomplete
profile

WhatisChannelinitiatorandListeners?
Ans:Achannelinitiatoractsasatriggermonitorforsenderchannels,becausea
transmissionqueuemaybedefinedasatriggeredqueue.Whenamessagearrivesona
transmissionqueuethatsatisfiesthetriggeringcriteriaforthatqueue,amessageissent
totheinitiationqueue,triggeringthechannelinitiatortostartthe

Therewasanerrorinthisgadget

PopularPosts

IBMWebsphereMQinterview

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

4/11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2
appropriatesenderchannel.Youcanalsostartserverchannelsinthiswayifyou
specifiedtheconnectionnameofthepartnerinthechanneldefinition.Thismeansthat
channelscanbestartedautomatically,baseduponmessagesarrivingontheappropriate
transmissionqueue.
Youneedalistenerprogramtostartreceiving(responder)MCAs.ResponderMCAsare
startedinresponsetoastartuprequestfromthecallerMCAthechannellistenerdetects
incomingnetworkrequestsandstartstheassociatedchannel.
ChannelErrors?
Dueto:1.Xmitqissettogetdisabled2.NetworkIssues
3.QueueManagerStopped4.Listenerisnotrunning5.TriggerTurnedOff
ExplainChannelExitprogramsandwhatarethetypes?
ChannelexitprogramsarecalledatdefinedplacesintheprocessingcarriedoutbyMCA
programs
SecurityExit:Youcanusesecurityexitprogramstoverifythatthepartnerattheother
endofachannelisgenuine
MessageExit:MessageExitcanbeusedforEncryptiononthelink,messagedata
conversion,validationofuserID,
MessageretryExit:Messageretryexitiscalledwhenanattempttoopenthetarget
queueisunsuccessful
SenderandreceiverExit:Youcanusethesendandreceiveexitstoperformtaskssuch
asdatacompressionanddecompression
ChannelautodefinitionExitTransportretryExit
WhatistheDifferentLoggingMethodsavailable?
Ans:Therearetwodifferenttypesavailable
1.Circular:Thecircularloggingisusedforrestartrecovery.Itisthedefaultlogging
method.CircularisusedinDevelopmentandTestingQueues.Circularloggingkeepsall
restartDatainaringoflogfiles.Loggingfillsthefirstfileinthering,thenmovesonto
theandsoon,untilallthefilesarefull.Itthengoesbacktothefirstfileintheringand
startsThiscontinuesaslongastheproductisinuse,andhastheadvantagethatyou
neverrunoutoflogfiles.
2.Linear:Linearlogginggivesyoubothrestartrecoveryandmediarecovery.Itisusedin
Production.LinearloggingkeepsthelogdatainacontinuousSequenceoffiles.Spaceis
notreused,soyoucanalwaysretrieveanyrecordloggedfromthetimethatthequeue
managerwascreated.Asdiskspaceisfinite,youmighthavetothinkaboutsomeform
ofarchiving.Itisanadministrativetasktomanageyourdiskspaceforthelog,reusingOr
extendingtheexistingspaceasnecessary.
WhatistheDefaultlocationwherethelogsarestoredandmentionthedefaultsizes?
Ans:Defaultlocation:
Windows:C:\ProgramFiles\IBM\WebSphereMQ\log\qmgr
UNIX:/var/mqm/log
Whatisthelogfilesize?
Ans:InWebSphereMQforWindowsNTandWin2000,theminimumvalueis32,and
themaximumis16384.Thedefaultvalueis256,givingadefaultlogsizeof1MB.
InWebSphereMQforUNIXsystems,theminimumvalueis64,andthemaximumis16
384.Thedefaultvalueis1024,givingadefaultlogsizeof4MB.

QuestionsPart1Middleware
News
IBMWebsphereMQinterview
QuestionsPart1Middleware
News
==========================
==========================
===========WhatisMQa...
IBMWebsphereMQinterview
QuestionsPart2
WhatisQueue?Ans:Aqueueisa
datastructureusedtostore
messages.Aqueuemanager
ownseachqueue.Thequeue
managerisresponsiblef...
IBMWebsphereMQinterview
QuestionsPart5
MQSeries:ItisanIBMweb
sphereproductwhichisevolved
in1990s.MQseriesdoes
transportationfromonepointto
other.ItisanEAI...
WebsphereMQCommands/ibm
webspheremqcommands
WebsphereMQCommands/ibm
webspheremqcommands
==========================
=======================MQ
commandsCommandname
Purpose...
WebsphereMessageBroker
InterviewQuestionsMiddleware
News
WebsphereMessageBroker
InterviewQuestions
==========================
===================Part1
:Basics1.Whatareadvantagesof
usi...
WebsphereMessageBroker
(WMB)/DifferenceBetween
WebSphereMQandMessage
BrokerMiddlewareNews
WebsphereMessageBroker
(WMB)/DifferenceBetween
WebSphereMQandMessage
BrokerMiddlewareNews
DifferenceBetweenWebSphere
MQand...
IBMWebsphereMQReasoncode
list/mqreasoncodes/
webspheremqerrorcodes/mq
errormessages
Reasoncodelist
=================The
followingisalistofreasoncodes,
innumericorder,providing
detailedinformationtohelpyou
un...
IBMWebsphereMQProcesses
IBMWebsphereMQProcesses
ProcessesAMQMTRBN.
amqhasmn.exethelogger.
amqmsrvn.exeCOMserver.
amqmtbrn.exe.amqpcsea.exe
the...
IBMWebsphereMQReason
codes/mqreasoncodes/
webspheremqerrorcodes/mq
errormessages
Reasoncodes=============
ThefollowingisalistofPCF
reasoncodes,innumericorder,
providingdetailedinformationto
helpyouunders...

Howwillyouchangethelogfilesize?
AnsYoucannotchangethelogfilesize.Forthisyouneedtodropandrecreatethe
queuemanager.Thenumberoflogfilesprimary&secondarycanbechangedbutyou
needtorestarttheQmanagerforthechangestotakeeffect.
whatisthenumberforlogprimaryandsecondaryfileallocated?

IBMWebsphereMQMQRC
ReasonCodesMiddleware
News
MQRC(ReasonCodes)
MQRC_NONE0X'00000000'
MQRC_APPL_FIRST900
X'00000384'MQRC_APPL_LAST
999X'000003E7&...

Ans:Primarylogfiles:Thenumberofprimarylogfilestobeallocatedis3bydefaultthe
minimumis2andMAXinWin253/Unix510
Secondarylogfiles:Thenumberofsecondarylogfilestobeallocatedis2bydefaultthe
minimumis1andMAXinWin252/Unix509

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

5/11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2
Whatisthecommandusedforcreatingthelistener?
Ans:crtmqlsrttcpmQMNAMEpportno
Whatisthecommandsusedforrunninglistenerin5.3Version?
Ans:runmqlsrttcpmQMNAMEpportno
WhatiscommandusedtoperformtaskontheMQservices?
Ans:amqmdain
WhatarecommandsusedontheCommandserver?
Ans:1.strmqcsv:tostartthecommandserver
2.dspmqcsv:todisplaythecommandserver
3.endmqcsv:Toendthecommandserver.
IsthereisanychancefortheMessagelost?
Ans:Ifthetargetqueuemanagerdoesn.tcontainthedeadletterqueuedefinedandifthe
messagesarerunningonafastchannelandofnonpersistant,Thenthereisachanceof
themessageloss.
Whatisthecommandthatisusedtoprovideauthorizationfortheclients?
Ans:setmqautmQMNametqueuenQueuenamepGUEST+all
WhatarethecommonerrorsugetinDQM?Explainhowtoresolve?
Ans:mqrc2058:MQRC_Q_MGR_NAME_ERROR
Mqrc2059:MQRC_Q_MGR_NOT_AVAILABLE.
Mqrc2033:MQRC_NO_MSG_AVAILABLE.
Mqrc2085:MQRC_UNKNOWN_OBJECT_NAME.
Mqrc2009:MQRC_CONNECTION_BROKEN.
Mqrc2043:MQRC_OBJECT_TYPE_ERROR.
Mqrc2086:MQRC_UNKNOWN_OBJECT_Q_MGR.
Mqrc2035:MQRC_NOT_AUTHORIZED.
WhataredifferentmodesinwhichaapplicationcanconnecttoaQueuemanager?
Ans:1.Bindingmode:Inbindingmode,alsoknownasserverconnection,the
communicationtothequeuemanagerutilizesinterprocesscommunications.Oneofthe
keyfactorsthatshouldbekeptinmindisthatbindingmodeisavailableonlytoprograms
runningontheMQSeriesserverthathoststhequeuemanager.Aprogramusingbinding
modewillnotrunfromanMQSeriesclientmachine.Bindingmodeisafastandefficient
waytointeractwithMQSeries.CertainFacilities,suchasXAtransactioncoordination
byqueuemanager,areavailableonlyinbindingmode.
2.ClientConnection:ClientconnectionusesaTCP/IPconnectiontotheMQSeries
Serverandenablescommunicationswiththequeuemanager.Programsusingclient
connectionscanrunonanMQSeriesclientmachineaswellasonanMQSeriesserver
machine.Clientconnectionsuseclientchannelsonthequeuemanagertocommunicate
withthequeuemanager.TheclientconnectiondoesnotsupportXAtransaction
coordinationbythequeuemanager.
WhatarethedifferenttypesofmessagingsystemsusedbyJMS?
Ans:JMSapplicationsuseeitherthepointtopoint(PTP)orpublish/subscribestyleof
messaging.
PointtoPoint:Pointtopointmessaginginvolvesworkingwithqueuesofmessages.The
sendersendsmessagestoaspecificqueuetobeconsumednormallybyasingle
receiver.Inpointtopointcommunication,amessagehasatmostonerecipient.A
sendingclientaddressesthemessagetothequeuethatholdsthemessagesforthe
intended(receiving)client.
Publish/Subscribe:Incontrasttothepointtopointmodelofcommunication,the
publish/subscribemodelenablesthedeliveryofamessagetomultiplerecipients.A
sendingclientaddresses,orpublishes,themessagetoatopictowhichmultipleclients
canbesubscribed.Therecanbemultiplepublishers,aswellassubscribers,toatopic.

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

6/11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2
IsItPossibletouseonetransmissionQueueforthemultiplemessagechannels?
Ans:Itispossibletodefinemorethanonechannelpertransmissionqueue,butonlyone
ofthesechannelscanbeactiveatanyonetime.Thisisrecommendedfortheprovision
ofalternativeroutesbetweenqueuemanagersfortrafficbalancingandlinkfailure
correctiveaction.Atransmissionqueuecannotbeusedbyanotherchannelifthe
previouschanneltouseitterminatedleavingabatchofmessagesindoubtatthe
sendingend.
Whatisthecommandusedtotestwhetherthechannelisactiveornot?
Ans:runmqscQMName
Pingchannel(channelname).
WhataretheadministrativecommandsthatareusedinPublishandSubscribe?
Ans:Thestrmqbrkcommandisusedtostartabroker.Thefirsttimethiscommandisrun
onaqueuemanager,alltherelevantMQSeriesobjectsareautomaticallycreated.
strmqbrkmMYQMGRNAME
Thedspmqbrkcommandisusedtocheckthestatusofthebroker.Possiblestatesare:
starting,running,stopping,quiescing,notactiveandendedabnormally.
dspmqbrkmMYQMGRNAME
Theendmqbrkcommandisusedtostopabroker.Therearetwooptions:crequestsa
controlledshutdown(default),irequestsanimmediateshutdown.
endmqbrkimMYQMGRNAME
Whatismultiplehoping?
Ans:Ifthereisnodirectcommunicationlinkbetweenthesourcequeuemanagerandthe
targetqueuemanager,itispossibletopassthroughoneormoreintermediatequeue
managersonthewaytothetargetqueuemanager.Thisisknownasamultihop.
WhatisLocaladministrationandRemoteadministration?
LocalAdministration:Meanscarryingoutadministrationtasksonanyqueuemanagers
youhavedefinedonyourlocalsystem.
RemoteAdministration:Thisallowsyoutoissuecommandsfromyourlocalsystemthat
areprocessedonanothersystem.Forexample,youcanissuearemotecommandto
changeaqueuedefinitiononaremotequeuemanager.Youdonothavetologontothat
system,althoughyoudoneedtohavetheappropriatechannelsdefined.Thequeue
managerandcommandserveronthetargetsystemmustberunning
DifferencebetweenControlCommandsusedinWindowsandotherOs?
ControlcommandsonarecasesensitiveotherOSbutWindowstheycanbeusedany
way.
WhatisMQOO_BIND_ON_OPENoptionontheMQOPENcall?
Whenthisattributeissetitforcesallthemessagessenttothisqueuetobesenttothe
sameinstanceofthequeue(gotothesamequeueincluster)
DifferencebetweenMQPUTandMQPUT1call?
TheMQPUT1callalwaysoperatesasthoughMQOO_BIND_NOT_FIXEDwereineffect,
thatis,italwaysinvokestheworkloadmanagementroutine.
WhenisChannelsecurityexitprogramcalled?
ArecalledatMCAinitiationandtermination
Stoppingunauthorizedqueuemanagersputtingmessagesonyourqueues
UseOSsecurity,ObjectAuthorityManager(OAM)onWebSphereMQuserwritten
procedures
WhathappensifDEADletterQueueisnotdefined?
IfdeadletterqueuearenotdefinedtheMessagesareplacedontheTransmissionQueue
andtheQueueManagerbecomeInactive
ExplainRemotequeuedefinitions?Advantages?
Thesearedefinitionsforqueuesthatareownedbyanotherqueuemanager
Advantages:Theadvantageofremotequeuedefinitionsisthattheyenableanapplication
toputamessagetoaremotequeuewithouthavingtospecifythenameoftheremote
queueortheremotequeuemanager,orthenameofthetransmissionqueue.Thisgives
youlocationindependence.
Whathappensifchannelterminateswhenfastnonpersistentmessagesareintransit?

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

7/11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2
Ifachannelterminateswhilefast,nonpersistentmessagesareintransit,themessages
arelostanditisuptotheapplicationtoarrangefortheirrecoveryifrequired.Ifthe
receivingchannelcannotputthemessagetoitsdestinationqueuethenitisplacedonthe
deadletterqueue,ifonehasbeendefined.Ifnot,themessageisdiscarded.
Whathappenswhenamessagecannotbedelivered?
Messageretry:IftheMCAisunabletoputamessagetothetargetqueueforareason
thatcouldbetransitory(forexample,becausethequeueisfull),theMCAhastheoption
towaitandretrytheoperationlater
Returntosender:Ifmessageretrywasunsuccessful,oradifferenttypeoferrorwas
encountered,theMCAcansendthemessagebacktotheoriginator
Deadletterqueue:Ifamessagecannotbedeliveredorreturned,itisputontothedead
letterqueue(DLQ).YoucanusetheDLQhandlertoprocessthemessage
RecoveryscenarioDiskDriveFull,damagedQueuemanagerobject,Damagedsingle
object,Automaticmediarecoveryfailure
MQensuresthatmessagesarenotlostbymaintainingrecords(logs)oftheactivitiesof
thequeuemanagersthathandlethereceipt,transmission,anddeliveryofmessages
HowtoProcessMessagesfromtheDeadletterQueue?
WecanProcesstheDLQmessagesusingrunmqdlqcommandforsendingmessagesto
thedestinationQueuesortargetQueues.Usetherunmqdlqcommandtostartthedead
letterqueue(DLQ)handler,whichmonitorsandhandlesmessagesonadeadletter
queue.
runmqdlqQNameQMgrName
UsetheDeadLetterQueueHandlertoperformvariousactionsonselectedmessagesby
specifyingasetofrulesthatcanbothselectamessageanddefinetheactiontobe
performedonthatmessage.
Therunmqdlqcommandtakesitsinputfromstdin.Whenthecommandisprocessed,the
resultsandasummaryareputintoareportthatissenttostdout.
WhichfieldoftheMQDLHstructurecontainsareasoncodethatidentifieswhythe
messageisontheDLQ?
Reasonfield
Whatiscompletioncode(MQCC)andreasoncode(MQRC)?
Completioncodegivesthestatusofthecurrenttransactionitcanbe0,1,2.0for
Successfulcompletion(MQCC_OK),1Warning(MQCC_WARNING),2callfailed
(MQCC_FAILED).Reasoncodeisthatwhichgivesthereasonforwhichthetransaction
failsitcanbeMQRC_NONE,MQRC_BACKED_OUTetc.
WhatisCorrelID?
Thisisabytestringthattheapplicationcanusetorelateonemessagetoanother,orto
relatethemessagetootherunitofworkthattheapplicationisperforming.Thecorrelation
identifierisapermanentpropertyofthemessage,andpersistsacrossrestartsofthe
queuemanager
ExplaincommitandBackOutunitsofwork?
Whenaprogramputsamessageonaqueuewithinaunitofwork,thatmessageismade
visibletootherprogramsonlywhentheprogramcommitstheunitofwork.
Commit:Tocommitaunitofwork,allupdatesmustbesuccessfultopreservedata
integrity.Iftheprogramdetectsanerroranddecidesthattheputoperationshouldnotbe
madepermanent,itcanbackouttheunitofwork.
BackOut:Whenaprogramperformsabackout,WebSphereMQrestoresthequeueby
removingthemessagesthatwereputonthequeuebythatunitofwork.Thewayin
whichtheprogramperformsthecommitandbackoutoperationsdependsonthe
environmentinwhichtheprogramisrunning
BackoutCount(MQLONG)?
Thisisacountofthenumberoftimesthatthemessagehasbeenpreviouslyreturnedby
theMQGETcallaspartofaunitofwork,andsubsequentlybackedout.BackoutCountis
thenumberoftimestheapplicationtriedandfailedtoputthemessagesintheQueue
WhatissegmentationandexplainsegmentationFlag?
Whenamessageistoobigforaqueue,anattempttoputthemessageonthequeue
usuallyfails.Segmentationisatechniquewherebythequeuemanagerorapplication
splitsthemessageintosmallerpiecescalledsegments,andplaceseachsegmentonthe
queueasaseparatephysicalmessage.Theapplicationthatretrievesthemessagecan
eitherretrievethesegmentsonebyone,orrequestthequeuemanagertoreassemblethe
segmentsintoasinglemessagethatisreturnedbytheMQGETcall.
WhatareNamelist?whendoyouuseit?

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

8/11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2
AnamelistisaWebSphereMQobjectthatcontainsalistofotherWebSphereMQ
objects.Typically,namelistsareused
Bytriggermonitors,wheretheyareusedtoidentifyagroupofqueues.
Namelistsarealsousedwithqueuemanagerclusterstomaintainalistofclusters
referredtobymorethanoneWebSphereMQobject.
Theadvantageofusinganamelististhatitismaintainedindependentlyofapplications
itcanbeupdatedwithoutstoppinganyoftheapplicationsthatuseit.Also,ifone
applicationfails,thenamelistisnotaffectedandotherapplicationscancontinueusingit.
Namelistsarealsousedwithqueuemanagerclusterstomaintainalistofclusters
referredtobymorethanoneWebSphereMQobject
Whatarenameservices?
Thenameserviceisaninstallableservicethatprovidessupporttothequeuemanagerfor
lookingupthenameofthequeuemanagerthatownsaspecifiedqueue.
WhatisLocalunitsofwork(usesasinglephasecommitprocess)andGlobalunitof
Work(usesatwophasecommitprocess)?
Localunitofwork:Unitsofworkthatinvolveonlythequeuemanagerarecalledlocal
unitsofwork.Syncpointcoordinationisprovidedbythequeuemanageritself(internal
coordination)usingasinglephasecommitprocess.
Useglobalunitsofworkwhenyoualsoneedtoincludeupdatestoresourcesbelonging
tootherresourcemanagers.Herethecoordinationcanbeinternalorexternaltothe
queuemanagerusesatwophasecommit
Howwillwestartacommandserver?
Dependingonthevalueofthequeuemanagerattribute,SCMDSERV,thecommand
serveriseitherstartedautomaticallywhenthequeuemanagerstarts,ormustbestarted
manually.
Start:Usingstrmqcsvsaturn.queue.managerwheresaturn.queue.manageristheQM
name
Display:dspmqcsvStop:endmqcsv
WhenweuseCCSIDattributeoftheALTERQMGRcommandtochangetheCCSIDof
theQMwhatarethecomponentsthatneedtoberestarted?
Stopandrestartthequeuemanager,stopandrestartcommandserver(Acommand
serverprocessescommandmessages)andchannelprograms
WhatisaMQSeriesQueuemanagerConfigurationfile(qm.ini)?
Aqueuemanagerconfigurationfile(qm.ini)toeffectchangesforspecificqueue
managers.Thereisoneqm.inifileforeachqueuemanageronthenode.(Aqueue
managerconfigurationfile,qm.ini,containsconfiginformationrelevanttoaspecificqueue
manager.Thereisonequeuemanagerconfigurationfileforeachqueuemanager.The
qm.inifileisautomaticallycreatedwhenthequeuemanagerwithwhichitisassociatedis
created.Forexample,thepathandthenameforaconfigurationfileforaqueuemanager
calledQMNAMEis:/var/mqm/qmgrs/QMNAME/qm.ini)
WhatisnametransformationinnamingaQueuemanagerConfigurationFile?
Aqm.inifileisheldintherootofthedirectorytreeoccupiedbythequeuemanager.For
example,thepathandthenameforaconfigurationfileforaqueuemanagercalled
QMNAMEis:/var/mqm/qmgrs/QMNAME/qm.iniAdirectorynameisgeneratedbasedon
thequeuemanagername.Thisprocessisknownasnametransformation.
WhatisaWebsphereMQconfigurationfile(mqs.ini)?
Containsinformationrelevanttoallthequeuemanagersonthenode.Itiscreated
automaticallyduringinstallation(TheWebSphereMQconfigurationfile,mqs.ini,contains
informationrelevanttoallthequeuemanagersonthenode.Itiscreatedautomatically
duringinstallation.Themqs.inifileforWebSphereMQforUNIXsystemsisinthe
/var/mqmdirectory.Itcontains:vThenamesofthequeuemanagersvThenameofthe
defaultqueuemanagerThelocationofthefilesassociatedwitheachofthem)
Howcanweedittheconfigurationfiles?
Automaticallyusingcommandsthatchangetheconfigurationofqueuemanagersonthe
node,Manuallyusingastandardtexteditor
Whensecuritychecksaremade?
Connectingtothequeuemanager(MQCONNorMQCONNXcalls),Openingtheobject
(MQOPENorMQPUT1calls),Puttingandgettingmessages(MQPUTorMQGETcalls),
Closingtheobject(MQCLOSE)
PostedbyKarthickat8:50AM
Labels:WebsphereMQ

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

9/11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2

9comments:
August1,2010at8:45PM
..................................................
Reply

August4,2010at7:06PM
Manyalittlemakesamickle..................................................................
Reply

robinho October11,2010at5:27PM
Hi
Tksverymuchforpost:
Ilikeitandhopethatyoucontinueposting.
Letmeshowothersourcethatmaybegoodforcommunity.
Source:Difficultinterviewquestions
Bestrgs
David
Reply

sathish April7,2011at12:27AM
Ifuhaveanyquestionson"CLUSTERING",plzpost..
Reply

RobertP.Calfee March6,2013at10:48PM
ThispostisprobablywhereIgotthemostusefulinformationformyresearch.Thanks
forposting,maybewecanseemoreonthis.
Areyouawareofanyotherwebsitesonthis
IBMMQWEBSPHEREOnlinetraining
Reply

muralidharreddy September6,2014at2:39AM
cananyonehelpregardingtheinstallationofMQonRHEL/6.5
afterinstallationicouldn'tfoundAMQSPUT
Reply

jakegeorge September9,2014at2:58AM
IBM Websphere Online Training, http://www.21cssindia.com/courses/ibmwebsphere
onlinetraining252.htmlThe21stCenturySoftwareSolutionsofIndiaoffersoneofthe
LargestconglomerationsofSoftwareTraining,ITSupport,CorporateTraininginstitute
in India +919000444287 +917386622889 Visakhapatnam,Hyderabad IBM
Websphere Online Training, IBM Websphere Training, IBM Websphere, IBM
Websphere Online Training| IBM Websphere Training| IBM Websphere| "Courses at
21stCenturySoftwareSolutions
Talend Online Training Hyperion Online Training IBM Unica Online Training
SiteminderOnlineTrainingSharePointOnlineTrainingInformaticaOnlineTraining
SalesForce Online Training Many more | Call Us +917386622889
+919000444287contact@21cssindia.com
Visit:http://www.21cssindia.com/courses.html"
Reply

kitsonline February16,2016at4:29AM
verynicearticle.Thanksforsharingthepost...!
MSBIOnlineTraining
Reply

Prasad May25,2016at6:15AM
veryusefull
Reply

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

10/11

7/13/2016

MiddlewareNews:IBMWebsphereMQinterviewQuestionsPart2

Enteryourcomment...

Commentas:

Publish

Selectprofile...

Preview

NewerPost

Home

OlderPost

Subscribeto:PostComments(Atom)

Simpletemplate.PoweredbyBlogger.

http://middlewarenews.blogspot.in/2010/08/ibmwebspheremqinterviewquestions_01.html

11/11

You might also like