You are on page 1of 16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
0

More NextBlog

CreateBlog SignIn

Techical Interview Questions


About Me

M o n d a y, 1 4 J u l y 2 0 1 4

Amit Sethi

WMB Websphere Message Broker

Follow

1.WhatarethefeaturesofMessageBroker?

82

View my complete profile

Ans:Routing,TransformationandIntegration.
2.Whatistheroleofconfigurationmanager?

Blog Archive

Ans:Connect to the broker and to deploy the message


flowsontothebroker.

2014 (16)
July (16)
Solution Architecture

3.HowtocreateBrokerfromCommandprompt?

ETL
Java Springs

Ans:Usingmqsicreatebrokercommand.
4.WhatarethedefaultpropertiesofMQInputnode?
Ans:Message Domain, Message Set, Message Type,
MessageFormat,Topic.
5.Whichnodesareusedtochangethemessageinthe
flow?
Ans:Compute
Node,
Filter
ResetContentDescriptornode.

Node

and

Java Threading
Tips for Interview
XML
Design Patterns
UML
TOGAF
Design Pattern Session Facade
Design Patterns Factory
WMB Websphere Message Broker

6.Name6builtinnodesinMBToolkit?
Ans:(i)MQInputnode(ii)MQOutputnode(iii)Compute
node (iv) Database node (v) AggregateControl node
(vi)Filternode.

SQL
JDBC
Web Services
Core Java

7.How to call the method or function in the eSQL


coding?
Ans:Usingthe"CALL"keyword.
8.WhatistheBrokerDomain?
Ans:Group of brokers that coordinate a single
configurationmanagerconstituteaBrokerDomain.
9.NamethemessageformatswhichMBsupport?
Ans:XML,TDS,CWF,EDI,SWIFT.
10.WhatisanExecutionGroup?
Ans:An execution group is a named grouping of
messageflowsthathavebeenassignedtoabroker.
11.DifferencebetweenRootandOutputRoot?
Ans:RootisusedintheDatabasecontentchangingand
inFilternode.OutputRootisusedintheESQLcodefora
Compute node that creates a new output message
basedontheinputmessage.
12.WhatisUsernameServerandwhereitisdefined?

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

1/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
Ans:The User Name Server is an optional runtime
component that provides authentication of users and
groupsperformingpublish/subscribeoperations.
13.Howcanweseetheerrorlogfilesinbroker?
Ans:The Windows Event Viewer is where WebSphere
MessageBrokerwritesrecordstothelocalsystem.
14.What are the perspectives there in MB Toolkit? In
whichperspectivewedeploytheflow?
Ans:(i) Administration Perspective (ii) Application
DevelopmentPerspective(iii)DebuggingPerspective(iv)
Java Perspective . We deploy flows in Administration
Perspective.
15.What are the different ways to give input without
usingMQInputnode?
Ans:SCADAInput, HTTPInput, FileInput, RealtimeInput,
JMSInput,CustomInputnodes.
16.What is PARSER? Difference between PARSER
andFORMAT?
Ans:AParserisdefinedasaprogramthatinterpretsthe
bit stream of an incoming message and creates an
internalrepresentationofitinatreestructure.Ex:MRM
parser
A Format is a physical representation of a message.
Ex:XMLwireformat
17.DefineCorrelationnames?
Ans:Acorrelationnameisafieldreferencethatidentifies
awelldefinedstartingpointinthelogicalmessagetree
and is used in field references to describe a standard
partofthetreeformat.
18.HowwillweuseaCobolcopybookinMB?
Ans:You can populate your message set with message
definitions by importing COBOL copybook files, using
either the New Message Definition File wizard or the
mqsicreatemsgdefscommandlineutility.
19.1)WhatisSCHEMAofbroker?
Ans:Abrokerschemaisasymbolspacethatdefinesthe
scopeofuniquenessofthenamesofresourcesdefined
within it. The resources are message flows, ESQL files,
andmappingfiles.
20.How can you interact with Database using
Computenode?
Ans:Specify in Data Source the name by which the
appropriatedatabaseisknownonthesystemonwhich
thismessageflowistoexecute.

Q:Whatexactlydoyouunderstandbymessage
broker??
A:

AMessageBrokerisanintermediaryprogram
thathelpscommunicatingmultiplesystemto
eachotherbytransforming,routingthe
messagesinthewaytheyneed.
TOP

Q: WhydowerequiremessagebrokerwhenwehaveMQ?
A: Bothmessagebrokerandmqworksasmiddlewareprograms,thatistohelpcommunicatingdifferent
systems,butmqhasaslightdrawbackthatitcannottransformthemessages.Itcanjustsendthe
messagetoothersystem.
TOP

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

2/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
Q: WhatisthedifferencebetweenMessageBrokerandMQ?
A: WebSphereMQfacilitatescommunicationbetweenapplicationsbysendingandreceivingmessagedata
viamessagingqueues.WebSphereMQprovidesasecureandreliablelayeroftransportformovingdata
unchangedintheformofmessagesbetweenapplicationsbutitisnotawareofthecontentofthe
messages.
WebSphereMessageBrokerisbuilttoextendWebSphereMQ,anditiscapableofunderstandingthe
contentofeachmessagethatitmovesthroughtheBroker.MessageBrokercandothefollowing:
Matchesandroutescommunicationsbetweenservices
Convertsbetweendifferenttransportprotocols
Transformsmessageformatsbetweenrequestorandservice
Identifiesanddistributesbusinesseventsfromdisparatesources.
TOP

Q: WhataretheadvantagesofusingWebspheremessagebroker?
A: Webspheremessagebrokerprovidesservices,basedonmessagebrokerstoallowyouto:
Routeamessagetoseveraldestinations,usingrulesthatactonthecontentsofoneor
moreofthefieldsinthemessageormessageheader.
Transformamessage,sothatapplicationsusingdifferentformatscanexchangemessages
intheirownformats.
Storeamessage,orpartofamessage,inadatabase.
Retrieveamessage,orpartofamessage,fromadatabase.
Modifythecontentsofamessageforexample,byaddingdataextractedfroma
database.
TOP

Q:WhatallarethemaincomponentsusedinMessageBroker?
A:ThemaincomponentsusedinMessageBrokerNameServerare
UserNameServer
ConfigurationManager
Broker
TOP

Q:WhatdoyouunderstandbyBrokerDomain?
A: GroupofbrokersunderasingleconfigurationmanagerconstituteaBroker
Domain.
TOP

Q: Whatisthesignificanceofnodesinmessageflows?
A: Amessageflownodereceivesamessage,performsasetofactionsagainstthemessage,passesthe
originalmessageorthechangedmessage,tothenextnodeinthemessageflow.
TOP

Q: Ifconfigurationmanagerisdown,whataretheeffectsontherunningbrokers?
A: Therunningbrokerwillalsobedownatthemomentwhenconfigurationmanageris
down.
TOP

Q:Howcanwecreatebroker?
A:Twowaystocreatebroker:

ByusingWebsphereMessageBrokerExplorer.
Byusingcommandprompt.
TOP

Q:Whatisthecommandusetocreatebroker?
A:mqsicreatebrokeristhecommandusedtocreatebroker.

TOP

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

3/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
Q: WhatisUsernameServer?
A: TheUserNameServerisanoptionalruntimecomponentthatprovidesauthenticationofusersand
groupsandgiveanadministrativecontroloverwhocanpublishandwhocansubscribeoperations.

TOP

Q: WhatistheRoleofUsernameserver?
A: TheUserNameServerinterfaceswithoperatingsystemfacilitiestoprovideinformationaboutvalid
usersandgroupsinabrokerdomain.
TOP

Q:Canasinglequeuemanagerhavetwobrokers?
A: Noasinglequeuemnagercannothavetwobrokers.

TOP

Q:WithWhichcommandonecandeploythebarfiles?
A: Usingthemqsideploycommandonecandeploythebarfiles.
TOP

Q: WhatisthedifferencebetweenaRootandOuputRoot?
A: RootisusedintheDatabasecontentchangingandinFilternode.
OutputRootisusedintheESQLcodeforaComputenodethatcreatesanewoutputmessagebasedon
theinputmessage
TOP

Q: WhatistheUseofConfigmanager?
A: ToConnecttotheremotebrokerorlocalbrokerandtodeploythemessageflowsontothe
Broker.
TOP

Q:Whichperspectiveyouusedtodeploytheflow?
A:Administratorperspectiveisusedtodeploytheflow.

TOP

Q: WhatdoyouunderstandbyEAI?NamesomeEAItools?
A: EnterpriseApplicationIntegrationreferstotheintegrationofoneormoreapplicationsandprocesses
together.
Tools:WBIMessageBroker,Tibco,WebMethodsandICS
TOP

Q:WhataretheFeaturesofMessageBroker?
A:WMBhasmanyfeatures,Themainfeaturesare:
Routing
Transformationand
Integration
TOP

Q: WhatdoyoumeanbyanExecutionGroup?
A: Anexecutiongroupisanamedgroupingofmessageflowsthathavebeenassignedtoabroker.The
brokerenforcesadegreeofisolationbetweenmessageflowsindistinctexecutiongroupsbyensuring
thattheyexecuteinseparateaddressspaces,orasuniqueprocesses.
TOP

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

4/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
Q: WhatisthesignificanceofSCHEMAinmessagebroker?
A: Abrokerschemaisasymbolspacethatdefinesthescopeofuniquenessofthenamesofresources
definedwithinit.Theresourcesaremessageflows,ESQLfiles,andmappingfiles.

TOP

Q: Whataretheperspectivesyouhavemainlyusedwhiledevelopmentinmessagebroker?
A: Theperspectivesmainlyusedwhilethedevelopmentinmessagebrokerare

AdministrationPerspective
ApplicationDevelopmentPerspective
DebuggingPerspective
JavaPerspective(MB6)
Whatisthesignificanceof
messageflowsinmessage
broker?
A:

AmessageFlowdescribesthesequenceofstepsfollowedinthe
brokerthatprocessesaninputmessagewhenaninputmessageis
received.
TOP

Q: WhatisPARSER?
A: AParserisaprogramthattakestheincomingmessage,interpretsitsbitstreamandcreatesan
internalrepresentationofitinatreelikestructure,whichcanbethenunderstandbymessage
brokerassembly.
TOP

Q:WhatisaFormat?
A: PhysicalRepresentationofamessageisaFormat.
TOP

Q:Whatyoudotomakeyourservicesactuallyrun?
A:PackagingservicesinaBARfileanddeploytheBARfileonthebroker.
TOP

Q: WhatisaBAR?
A: BrokerArchiveorBARisapackageofmessageflows,messagesets,javautilityclasses,xsltsetc.
thataregroupedtogethertobedeployedonthebroker.
TOP

Q:WhichcommandisusedtocreateaBAR?
A:mqsipackagebarcommand.
TOP

Q: Whatdoesmqsiapplybaroverridecommanddo?
A: Themqsiapplybaroverridecommandisusedtoreplaceconfigurablevaluesinthebrokerarchive
(BAR)withnewvaluesthatyouspecifyinapropertiesfile.
TOP

Q:WhichnodesinWMBsupportsaggregation?
A:

AggregateControl
AggregateRequest
AggregateReply
TOP

Q: Isitpossibletocreatemultipleinstancesofamessageflow?
A: Yes.Wecancreatemultipleinstanceofamessageflowbydeployingthemessageflowstodifferent
executiongroup.
TOP

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

5/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
Q:Whatisalogicalmessagetree?
A:Logicalmessagetreeistheinternalrepresentationofamessage.
TOP

Q:WhatarethetypesofTrees?
A:Foursubtreeofalogicaltreecreatedbyinputnodeofamessageflow:

Messagetree
Environmenttree
LocalEnvironmenttree
ExceptionListtree.
TOP

Q:Whatisthepurposeofafilternode?
A: Thepurposeofafilternodeistorouteamessagebasedonthecontent
dynamically
TOP

Q:WhatarethetypesofTRACES?
A:

Usertrace
Servicetrace.
TOP

Q:WhataretheTypesofQueues,onecancreateinMQ?
A:

Localqueue
Remotequeue
Transmissionqueue
Aliasqueue
Deadletterqueue
TOP

Q: WhatarethetypesofclientsinMQ?
A: TherearetwotypesofclientsinMQ
FatClients:Doeshavealocalqueuemanager.
Slimclients:Doesnothavealocalqueuemanager,whereasthequeuemanagerresideonthe
server.
TOP

Q: Withwhichallnodesonecanchangemessageinamessageflow?
A: ComputeNode,MessageMappingNode,FilterNode,ResetContentDescriptorNodecachange
messageinamessageflow.
TOP

Q: WhatwillhappenifwedontspecifyqueuenameinaMQOUTPUTorMQINPUTnode?
A: Messagewillbebackedoutandanexceptionwillbethrownwiththemessagenoqueuenameis
defined.

TOP

Q:Whathappenifamessageissenttoaqueueandthequeueisfilled?
A:Thenthemessagegoestotherelevantdeadletterqueue.

TOP

Q: WhatisthedifferencebetweenEnvironmentandLocalEnvironmenttree?
A: Theenvironmenttreediffersfromthelocalenvironmenttreeinthatasingleinstanceofitis

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

6/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
maintainedthroughoutthemessageflow.IfyouincludeaComputenode,aMappingnode,ora
JavaComputenodeinyourmessageflow,youdonothavetospecifywhetheryouwantthe
environmenttreetobeincludedintheoutputmessage.Theenvironmenttreeisincluded
automatically,andtheentirecontentsoftheinputenvironmenttreeareretainedintheoutput
environmenttree.Anychangesthatyoumakeareavailabletosubsequentnodesinthemessage
flow,andtopreviousnodes.
TOP

Q:InwhatallcasesmessagegoesintoDeadLetterQueue?
A:

WhentheDestinationqueueisfull
WhentheDestinationqueuedoesntexist
Whentheincomingmessagetoolarge
WhentheSenderisnotauthorizedtousethedestinationqueue.
TOP

Q:WMBprovidesupportsforwhattypesofmessages?
A:WMBprovidesupportforfollowingtypeofmessages:

MRM
XML
XMLNS
XMLNSC
JMSMap
JMSStream
MIME
BLOB
IDOC
TOP

Q: WhatdoyoumeanbyCorrelationnames?
A: Acorrelationnameisafieldreferencereferencingawelldefinedstartingpointinthelogical
messagetreeandtodescribeastandardpartofthetreeformat.

Whatdoyoumeanby
ResetContentDescriptor
node?
A:

ResetContentDescriptornoderequesttoparsethemessagewith
differentparser,leavingthemessagecontentunchanged.
TOP

Q: WhatisthedifferencebetweenanMQGetnodendMQInputnode?
A: TheMQGetnodereadsamessagefromaspecifiedqueue,andestablishestheprocessing
environmentforthemessage.Whereas,TheMQInputnodereceivesamessagefroma
WebSphereMQmessagequeuethatisdefinedonthequeuemanagerofthebroker.
YoucanuseanMQGetnodeanywhereinamessageflow,unlikeanMQInputnode,whichyoucan
useonlyasthefirstnodeinamessageflow.
TOP

Q: WhatisthedifferencebetweenSOAPRequestnodeandSOAPAsyncRequestnode?
A: TheSOAPAsyncRequestnodesendsaWebservicerequest,butthenodedoesnotwaitforthe
associatedWebserviceresponsetobereceived.Thisasynchronousfunctionalityenablesmultiple
outboundrequeststobemadealmostinparallelbecausetheoutboundrequestisnotblocked
waitingfortheresponse.

Whereas,TheSOAPRequestnodeisasynchronousrequestandresponsenode,whichblocks
processingaftersendingtherequestuntiltheresponseisreceived.
TOP

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

7/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
Q: WhatisthedifferencebetweenMappingnodeandComputenodetransformation?
A: InComputenodeyoucantransformthemessagebycodingESQLintheESQLresourcefile
attached.Whereas,Inmappingnodeyoucanusegraphicalmapstotransforminputmessageby
associatinganinputmessagemodelsuchasaDFDLorXMLschema,oranMRMMessageSetand
anoutputmessagemodel.
Incomputenodeyoucanchangetheentiremessageeventheheaderassemblies.But,In
mappingnodeyoucanchangethemessageassembly,messagebody,andproperties.
TOP

Q: WhatisthedifferencebetweenInputandMQInputnode?
A: UsetheInputnodeasanInterminalforanembeddedmessageflow(asubflow).TheMQInput
nodereceivesamessagefromaWebSphereMQmessagequeuethatisdefinedonthequeue
managerofthebroker.Itisthefirstnodeofyourmessageflow.
TOP

Q:Whatisthepurposeoruseofcomputenode?
A:TheComputenodeisusedto:

Buildanewmessageusingasetofassignmentstatements
Copymessagesbetweenparsers
Convertmessagesfromonecodesettoanother
Transformmessagesfromoneformattoanother
TOP

Q: HowtheinteractionwithDatabasedoestakeplaceusingComputenode?
A: InDataSourcespecifythenamebywhichtheappropriatedatabaseisknownonthesystemon
whichthismessageflowistoexecute.
TOP

Q: Differencebetweentrycatchnodeandthrownode?
A: IncludeaThrownodetoforceanerrorpaththroughthemessageflowifthecontentofthe
messagecontainsunexpecteddata.
Ifadownstreamnode(whichcanbeaThrownode)throwsanexception,theTryCatchnode
catchesitandroutestheoriginalmessagetoitsCatchterminal.ConnecttheCatchterminalto
furthernodestoprovideerrorprocessingforthemessageafteranexception.
TOP

Q: Howwillinputmessageswithdifferentdifferentdelimitersbetweenthefieldsare
handledinWMB?
A: UsingMRMdomainwecaninputmessageswithdifferentdifferentdelimetersbetweenthe
fieldsinWMB.
TOP

Q:WhatdoyoumeanbydepthofaQueue?
A:Queuedepth,isthenumberofpendinginput/outputmessagesinaqueue.
TOP

Q:Howcanweknowthecurrentdepthofaqueue?
A:UsingMQSCpropertyCURDEPTHwecanknowthecurrentdepthofaqueue.
TOP

Q:MessageBrokersupportswhatallformats?
A: MessageBrokersupportsXML,TDS,CSV,CWF,EDIFACT,SWIFT,COBOLformats
TOP

Q:WhatallnodesusesESQL?
A: ESQLcanbeusedwiththeCompute,Database,andFilternodes.

TOP

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

8/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
Q: WhatisESQL?
A: ExtendedStructuredQueryLanguage(ESQL)isaprogramminglanguagebasedonStructured
QueryLanguage(SQL),whichiscommonlyusedwithrelationaldatabasessuchasDB2.ESQL
extendstheconstructsoftheSQLlanguagetoprovidesupportforyoutoworkwithboth
messageanddatabasecontent.
TOP

Q:WhatfunctionalityESQLprovides?
A:ThroughESQLyoucan

Changethemessagecontent.
Modifyanexistingmessage
Createanewmessage
Adddynamicterminals
Routeamessage
Propagateanewrequest
TOP

Q: WhatarethetypesofvariablesinESQL?
A: ESQLvariablescanbedescribedasexternalvariables,normalvariables,orshared
variables.
TOP

Q: Whatareexternalvariables,normalvariables,orsharedvariables?
A: Externalvariables:
Alsoknownasuserdefinedproperties.
Existforentirelifetimeofamessageflowandarevisibletoallmessagespassed
throughtheflow.
Definedatmoduleorschemalevel.
Youhavetoassignaninitialvalueatthetimeofdeclaringanexternalvariableand
thencanmodifytheinitialvalueatdeploymenttimebyusingtheBAReditor.
NormalVariables:
Havelifetimeofjustonemessagepassthroughanode.
Visibletothatmessageonlyinwhichitwasdefined.
Todefine,omitbothEXTERNALandSHAREDkeyword.
Sharedvariable:
Usedtoimplementinmemorycacheinthemessageflow.
Havealonglifetimeandarevisibletomultiplemessagespassthroughtheflow.
ExistforthelifetimeofExecutiongroup,lifetimeofflowornode,lifetimeofnodes
ESQLthatdeclaresthevariable.
Initializedwhenthefirstmessagepassthroughthenodeorflowafterbroker
startup.
TOP

Q: Whatarepatterns?
A: Apatterncapturesatestedsolutiontoacommonlyrecurringproblem,addressingtheobjectives
thatyouwanttoachieve.

TOP

Q: Whatarethebenefitsofusingpatterns?
A: Patternsprovidethefollowingbenefits:

Giveyouguidancefortheimplementationofsolutions
Increasedevelopmentefficiency,becauseresourcesaregeneratedfromasetof
predefinedtemplates

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

9/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
Resultinhigherqualitysolutions,throughreuseofassetsandcommon
implementationofprogrammingapproaches,suchaserrorhandlingandlogging
TOP

Q: Howdoyouensurethatmessagesdonotlose?
A: ForapplicationandinternalmessagestravelingacrossWebSphereMQ,twotechniquesprotect
againstmessageloss:

MessagepersistenceIfamessageispersistent,WebSphereMQensuresthatitis
notlostwhenafailureoccurs,bycopyingittodisk.
SyncpointcontrolAnapplicationcanrequestthatamessageisprocessedina
synchronizedunitofwork.

TOP

Q:Howtousefunctionsinyouresqlcode?
A:UseCALLkeywordtocallfunctionsormethods.

TOP

Q: Whatarethewaysinwhichyoucanaccessdatabasesfromamessageflow?
A: Youcanaccessadatabasefromamessageflowintwoways:

Youcandesignamessageflowthatrespondstoeventsgeneratedbythedatabase.
Afteraflowhasalreadystarted,youcanaccessthedatabasetoreadorupdate
informationinit.Informationfromthedatabasecanbeusedtoenhanceor
influencetheoperationofthemessageflow.
Whatallnodescanaccess
databases?
A:

Wecanaccessadatabasefromamessageflowbyusingthe
followingnodes:

Compute
Database
DatabaseInput
DatabaseRetrieve
DatabaseRoute
Filter
JavaCompute
Mapping
TOP

Q: WhatisPublish/Subscribe?
A: Publish/subscribeisastyleofmessagingapplicationinwhichtheprovidersofinformation
(publishers)aredecoupledfromtheconsumersofthatinformation(subscribers).
TOP

Q: WhatarethetechniquesusedintransformingandenrichingmessagesinWMB?
A: Wecantransformandenrichmessagesbyusingoneormoreofthefollowing
techniques:

Mappings
ESQL
Java
XSLstylesheets
PHP
.NET

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

10/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
TOP

Q:Whatarethebasicerrorhandlingtechniquesavailableinmessageflow?
A:Therearetwogeneralapproachestohandleerrorsinamessageflow:

Failurechecking
CatchingExceptions
TOP

Q: Whataremessagemodels?
A: Mostmessageformatsarenotselfdefining,andaparsermusthaveaccesstoapredefined
modelthatdescribesthemessage,ifitistoparsethemessagecorrectly.Amessagemodelis
usedbyWebSphereMessageBrokertomodelamessageformat.
TOP

Q: Whataretheadvantagesofmodelingmessages?
A: Evenifyourmessagesareselfdefining,anddonotrequiremodeling,messagemodelinghas
thefollowingadvantages:

Runtimevalidationofmessages.Withoutamessagemodel,aparsercannot
checkwhetherinputandoutputmessageshavethecorrectstructureanddata
values.
EnhancedparsingofXMLmessages.AlthoughXMLisselfdefining,alldata
valuesaretreatedasstringsifamessagemodelisnotused.Ifamessagemodel
isused,theparserisprovidedwiththedatatypeofdatavalues,andcancast
thedataaccordingly.
ImprovedproductivitywhenwritingESQL.WhenyouarecreatingESQLprograms
forWebSphereMessageBrokermessageflows,theESQLeditorcanusemessage
modelstoprovidecodecompletionassistance.
Draganddropoperationsonmessagemaps.Whenyouarecreatingmessage
mapsforWebSphereMessageBrokermessageflows,theMessageMappingeditor
usesthemessagemodeltopopulateitssourceandtargetviews.Without
messagemodels,youcannotusetheMessageMappingeditor.
Reuseofmessagemodels,inwholeorinpart,bycreatingadditionalmessages
thatarebasedonexistingmessages.
Generationofdocumentation.
Provisionofversioncontrolandaccesscontrolformessagemodelsbystoring
theminacentralrepository.
TOP

Q: Whatarethewaystocreatemessagemodels?
A: Youcancreateamessagemodelbyusingthefollowingmethods:

ImportinganapplicationmessageformatthatisdescribedbyanXMLSchema,
XMLDTD,Cstructure,COBOLstructure,SCAimportorexport,orWSDL
definition.
Bycreatinganemptymessagemodelfile,thencreatingyourmessagebyusing
theeditorsprovidedintheWebSphereMessageBrokerToolkit.
ByusingtheAdapterConnectionwizardtoimportEISmetadata.
Bycreatingapopulatedmodelfilefromexamplemessagedata.
.
TOP

Q: Whatisthedifferencebetweenmqsicreatemsgdefsormqsicreatemsgdefsfromwsdl
commandlineutilities?
A: Themqsicreatemsgdefscommandhasabulkimportcapability,but
mqsicreatemsgdefsfromwsdlimportsonlyoneWSDLdefinitionatatime.
TOP

Q: Whataremessagesets?
A: Amessagesetisafolderinamessagesetprojectthatcontainsalogicalgroupingofyour
messagesandtheobjectsthatcomprisethem(elements,types,groups).

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

11/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
TOP

Q: Whatisamessagedefinitionfile?
A: Amessagedefinitionfilecontainsthemessages,elements,types,andgroupswhichmakeup
amessagemodelwithinamessageset.Everymessagesetrequiresatleastonemessage
definitionfiletodescribeitsmessages.MessagedefinitionfilesusetheXMLSchemalanguage
todescribethelogicalformatofoneormoremessages.
TOP

Q: Whatisamultipartmessage?
A: Amultipartmessagecontainsoneormoreothermessageswithinitsstructure.Thecontained
messageissometimesreferredtoasanembeddedmessage.Amultipartmessagemust
containagroup,oracomplextype,withitsCompositionpropertysettoMessage.
TOP

Q:WhatisTriggeringinMQ?
A: AmessageisputtoaqueuedefinedasTriggering.
TOP

Q: WhatdoesaPROPAGATEkeyworddo?
A: ThePROPAGATEstatementisusedtogeneratemultipleoutputmessagesintheCompute
node.Theoutputmessagesmayhavesameordifferentmessagecontent.Youcanalsosend
outputmessagestoanyalternateoutputterminalsoftheComputenode.
TOP

Q: WhydoweuseSequencenode?
A: TheSequencenodeenablesyoutoreceivegroupsofmessagesfromaninputsource,and
preservetheorderinwhichthemessagesineachgrouparrived.
TOP

Q:Whichcommandisusedtomodifybrokerparameters?
A:mqsichangebrokercommandisusedtomodifybrokerparameters.

Q: Whatisthepurposeofusingmqsichangepropertiescommand?
A: mqsichangepropertiescommandcanbeusedtochangepropertiesassociatedwithabroker
suchas:

thataffectthewholebrokerforexample,anHTTPlistenerorServiceFederation
Management
thataffectoneormoreexecutiongroupsforexample,thebrokerregistry
thataffectaconfigurableserviceforexample,aJMSprovider.

Whatdoyoumeanby
ResetContentDescriptor
node?
A:

ResetContentDescriptornoderequesttoparsethe
messagewithdifferentparser,leavingthemessage
contentunchanged.
TOP

Q: WhatisthedifferencebetweenanMQGetnodendMQInputnode?
A: TheMQGetnodereadsamessagefromaspecifiedqueue,andestablishestheprocessing
environmentforthemessage.Whereas,TheMQInputnodereceivesamessagefroma
WebSphereMQmessagequeuethatisdefinedonthequeuemanagerofthebroker.
YoucanuseanMQGetnodeanywhereinamessageflow,unlikeanMQInputnode,which
youcanuseonlyasthefirstnodeinamessageflow.
TOP

Q: WhatisthedifferencebetweenSOAPRequestnodeandSOAPAsyncRequestnode?
A: TheSOAPAsyncRequestnodesendsaWebservicerequest,butthenodedoesnotwaitfor

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

12/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
theassociatedWebserviceresponsetobereceived.Thisasynchronousfunctionality
enablesmultipleoutboundrequeststobemadealmostinparallelbecausetheoutbound
requestisnotblockedwaitingfortheresponse.

Whereas,TheSOAPRequestnodeisasynchronousrequestandresponsenode,whichblocks
processingaftersendingtherequestuntiltheresponseisreceived.
TOP

Q: WhatisthedifferencebetweenMappingnodeandComputenodetransformation?
A: InComputenodeyoucantransformthemessagebycodingESQLintheESQLresourcefile
attached.Whereas,Inmappingnodeyoucanusegraphicalmapstotransforminput
messagebyassociatinganinputmessagemodelsuchasaDFDLorXMLschema,oran
MRMMessageSetandanoutputmessagemodel.
Incomputenodeyoucanchangetheentiremessageeventheheaderassemblies.But,In
mappingnodeyoucanchangethemessageassembly,messagebody,andproperties.
TOP

Q: WhatisthedifferencebetweenInputandMQInputnode?
A: UsetheInputnodeasanInterminalforanembeddedmessageflow(asubflow).The
MQInputnodereceivesamessagefromaWebSphereMQmessagequeuethatisdefinedon
thequeuemanagerofthebroker.Itisthefirstnodeofyourmessageflow.
TOP

Q:Whatisthepurposeoruseofcomputenode?
A:TheComputenodeisusedto:

Buildanewmessageusingasetofassignmentstatements
Copymessagesbetweenparsers
Convertmessagesfromonecodesettoanother
Transformmessagesfromoneformattoanother
TOP

Q: HowtheinteractionwithDatabasedoestakeplaceusingComputenode?
A: InDataSourcespecifythenamebywhichtheappropriatedatabaseisknownonthe
systemonwhichthismessageflowistoexecute.
TOP

Q: Differencebetweentrycatchnodeandthrownode?
A: IncludeaThrownodetoforceanerrorpaththroughthemessageflowifthecontentofthe
messagecontainsunexpecteddata.
Ifadownstreamnode(whichcanbeaThrownode)throwsanexception,theTryCatchnode
catchesitandroutestheoriginalmessagetoitsCatchterminal.ConnecttheCatch
terminaltofurthernodestoprovideerrorprocessingforthemessageafteranexception.
TOP

Q: Howwillinputmessageswithdifferentdifferentdelimitersbetweenthefields
arehandledinWMB?
A: UsingMRMdomainwecaninputmessageswithdifferentdifferentdelimetersbetweenthe
fieldsinWMB.
TOP

Q:WhatdoyoumeanbydepthofaQueue?
A:Queuedepth,isthenumberofpendinginput/outputmessagesinaqueue.
TOP

Q:Howcanweknowthecurrentdepthofaqueue?
A:UsingMQSCpropertyCURDEPTHwecanknowthecurrentdepthofaqueue.
TOP

Q:MessageBrokersupportswhatallformats?
A: MessageBrokersupportsXML,TDS,CSV,CWF,EDIFACT,SWIFT,COBOLformats

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

13/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
TOP

Q:WhatallnodesusesESQL?
A: ESQLcanbeusedwiththeCompute,Database,andFilternodes.

TOP

Q: WhatisESQL?
A: ExtendedStructuredQueryLanguage(ESQL)isaprogramminglanguagebasedon
StructuredQueryLanguage(SQL),whichiscommonlyusedwithrelationaldatabasessuch
asDB2.ESQLextendstheconstructsoftheSQLlanguagetoprovidesupportforyouto
workwithbothmessageanddatabasecontent.
TOP

Q:WhatfunctionalityESQLprovides?
A:ThroughESQLyoucan

Changethemessagecontent.
Modifyanexistingmessage
Createanewmessage
Adddynamicterminals
Routeamessage
Propagateanewrequest
TOP

Q: WhatarethetypesofvariablesinESQL?
A: ESQLvariablescanbedescribedasexternalvariables,normalvariables,orshared
variables.
TOP

Q: Whatareexternalvariables,normalvariables,orsharedvariables?
A: Externalvariables:
Alsoknownasuserdefinedproperties.
Existforentirelifetimeofamessageflowandarevisibletoallmessages
passedthroughtheflow.
Definedatmoduleorschemalevel.
Youhavetoassignaninitialvalueatthetimeofdeclaringanexternal
variableandthencanmodifytheinitialvalueatdeploymenttimebyusingthe
BAReditor.
NormalVariables:
Havelifetimeofjustonemessagepassthroughanode.
Visibletothatmessageonlyinwhichitwasdefined.
Todefine,omitbothEXTERNALandSHAREDkeyword.
Sharedvariable:
Usedtoimplementinmemorycacheinthemessageflow.
Havealonglifetimeandarevisibletomultiplemessagespassthroughthe
flow.
ExistforthelifetimeofExecutiongroup,lifetimeofflowornode,lifetimeof
nodesESQLthatdeclaresthevariable.
Initializedwhenthefirstmessagepassthroughthenodeorflowafterbroker
startup.
TOP

Q: Whatarepatterns?
A: Apatterncapturesatestedsolutiontoacommonlyrecurringproblem,addressingthe
objectivesthatyouwanttoachieve.

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

14/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker
TOP

Q: Whatarethebenefitsofusingpatterns?
A: Patternsprovidethefollowingbenefits:

Giveyouguidancefortheimplementationofsolutions
Increasedevelopmentefficiency,becauseresourcesaregeneratedfromaset
ofpredefinedtemplates
Resultinhigherqualitysolutions,throughreuseofassetsandcommon
implementationofprogrammingapproaches,suchaserrorhandlingand
logging
TOP

Q: Howdoyouensurethatmessagesdonotlose?
A: ForapplicationandinternalmessagestravelingacrossWebSphereMQ,twotechniques
protectagainstmessageloss:

MessagepersistenceIfamessageispersistent,WebSphereMQensuresthat
itisnotlostwhenafailureoccurs,bycopyingittodisk.
SyncpointcontrolAnapplicationcanrequestthatamessageisprocessedin
asynchronizedunitofwork.

TOP

Q:Howtousefunctionsinyouresqlcode?
A:UseCALLkeywordtocallfunctionsormethods.

TOP

Q: Whatarethewaysinwhichyoucanaccessdatabasesfromamessageflow?
A: Youcanaccessadatabasefromamessageflowintwoways:

Youcandesignamessageflowthatrespondstoeventsgeneratedbythe
database.
Afteraflowhasalreadystarted,youcanaccessthedatabasetoreador
updateinformationinit.Informationfromthedatabasecanbeusedto
enhanceorinfluencetheoperationofthemessageflow.

Posted by Amit Sethi at 15:54

Recommend this on Google

2 comments:
Ramesh Masal 10 August 2015 at 12:17
good one
Reply

mouli 25 January 2016 at 23:12


thanks
Reply

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

15/16

7/18/2016

TechicalInterviewQuestions:WMBWebsphereMessageBroker

Enteryourcomment...

Commentas:

Publish

Selectprofile...

Preview

Newer Post

Home

Older Post

Subscribe to: Post Comments (Atom)

Simple template. Powered by Blogger.

http://amsethi.blogspot.in/2014/07/wmbwebspheremessagebroker.html

16/16