Friday 1 June 2018

IBM Integration Bus Interview questions Basics for 2-4 years Experience


1. One bar file is not getting deployed into exe group. What can be the reason? Give 2 reasons.


          Ans: The Execution group may be in stopped state or the Bar file may contains 
          some compile time errors.

2. If one flow has to be called more than once. What to do?
      Ans: We have two ways
a. We can use timer node 
b. In version 10 we have Callable flow through that also we can call

3. What is domain?
Ans: 
Domain : Grouping of Brokers.
Broker Domain : Group of brokers under a single configuration manager constitute a Broker Domain.


4. What are the logical trees in Message Broker?.
Ans : The logical tree structure is the internal (broker) representation of a message. It is also known as the message assembly.

• Message tree 
• Environment tree 
• Local environment 
• Exception list tree 

5. What are the methods of doing transformation in broker?
• Extended Structured Query Language (ESQL) 
• Graphical mapping node 
• JavaCompute node 

6. Which nodes can be used to write ESQL?
• Compute node
• Database node
• DatabaseInput node
• Filter node


7. What is the use of  Local Environment?
Ans: 
-We will use local environment tree to override the properties of node
-If you want to call webservice or want to put message in queue or file  
  dynamically then we will use LocalEnvironment variable
-Remember the life time of this Variable is at node level it will be not available 
 throughout the flow.
-If message fails due some reason in flow the LocalEnv will lost.
-If we are using this variable in compute node then we need to set the Compute
 mode property in compute node as Message and LocalEnvironment 

8. How Aggregate, XSLT, Passthrough, Route To Label, Flow order node work?
 Ans:     
Aggregate: Aggregation is the generation and fan-out of related requests 
Means if you want to send same request for one or more backends parallel then we will go with Aggregate nodes.
           
XSLT: (Extensible StyleSheet Language)  the XSLTransform node to transform an XML message to another form of message, according to the rules provided by an XSL (Extensible Stylesheet Language) style sheet, and to set the Message domain, Message set, Message type, and Message format for the generated message.
Here we should provide the "stylesheet name".

Passthrough: Use the Passthrough node to enable version control of a subflow at run time.
Use the Passthrough node to add a label to your message flow or subflow. By combining this label with keyword replacement from your version control system, you can identify which version of a subflow is included in a deployed message flow. You can use this label for your own purposes.
The Passthrough node does not process the message in any way. The message that it propagates on its Out terminal is the same message that it received on its In terminal.
It has 1 In and 1 out terminal.

Route To Label: To send the  message dynamically based on its contents we will use this node, basically it route a message to particular Label.
We need to provide Label Name in LocalEnvironment in compute node.
                   Or
            It is just used to route the message to the specified Label name.

Flow Order: Basically we use this node to send the message in order Ex: the message will propagate to first terminal the message will not come to second terminal until the first one gets ended, if any errors occurred at first terminal then message will not come to second terminal.
It has Three terminal(Failure,First,Second)

9. What is the difference between HTTP and SOAP node?
Ans:          
 - HTTP nodes handle the HTTP protocol.
            - SOAP nodes handle SOAP messages.
 - We can use SOAP nodes with  SOAP message domain OR HTTP   transport  
   nodes with XMLNSC message domain to implement Web Services
Several advantages exist if we use SOAP nodes :

· Support for WS-Addressing, WS-Security and SOAP headers.
· A common SOAP logical tree format, independent of the bitstream format.
· Runtime checking against WSDL.
· Automatic processing of SOAP with Attachments (SwA). 
· Automatic processing of Message Transmission Optimization Mechanism   (MTOM).

Cases where it might be better to use HTTP nodes include:

· Message flows that interact with Web services that use different standards, such as REST or XML-RPC. (We don't have a WSDL definition)
· Message flow that never use WS-Addressing, WS-Security, SwA, or MTOM.


10. What is filter node? How many terminal it has  and why are used? When are unknown terminals used?
FilterNode: Filter node to route a message according to message content. You define the route by coding the filter expression in ESQL.

4 Terminals: In,True,False,Unknown.
 Unknown: IF none of the conditions satisfied in Filter node if conditions
Or if we have not written any RETURN statement in ESQL then will route to Unknown.
.
Ex: If value is a>50 true and a<50 False is set in the  code. If a=50, which terminal the message will go, False or unknown?
Ans: It goes to Unknown termi
11. How CWF is working? How TDS is working?

CWF :
Custom Wire Format (CWF) is the physical representation of a message that is composed of a number of fixed-format data structures or elements, which are not separated by delimiters.
MRM(Message Repository Manager ) TDS format:
The Tagged/Delimited String format (TDS) is the physical representation of a message that has a number of data elements separated by tags and delimiters.
The TDS physical format is designed to model messages that consist of text strings, but it can also handle binary data. The TDS physical format allows a high degree of flexibility when defining message formats, and is not restricted to modeling specific industry standards; therefore, you can use the TDS format to model your own messages.

12. ls it possible to create a message set from XSD?

Ans: Yes, You can use a Quick Start wizard to create a message set, a message set project, and other resource files that you need to create a new application using XML documents (general) for that you have to convert xsd to xml.

13. What is point to point and pub/sub? 
Ans : Publish/Subscribe
Publish/subscribe is a style of messaging application in which the providers of information (publishers) have no direct link to specific consumers of that information (subscribers), but the interactions between publishers and subscribers are controlled by pub/sub brokers.


14. What is the method of giving default values instead of using COALESCE for each field?
Ans: we can use UDP

15.How to send more than 5 messages to different locations from compute node?
Ans: There are multiple ways.
a. we can use propagate by sending the queue names dynamically in LocalEnvironment in this case set the MQ property in advance Destintion mode as Destination List.
b. Can use Route node we can add N number of out terminal for this node and we can send to multiple destination.
c. We can use Label nodes as well.

16. How to access local environment in next node?
Ans: Use SET Var = InputLocalEnvironment.Destination….;



17. What are the functionalities of WMB?
· Route messages to one or more of many destinations
· Transform messages to an alternative representation
·Perform message aggregation, decomposing messages into multiple messages and  
 sending them to their destination, then recomposing the responses into one  
 message to return to the user
· Interact with an external repository to augment a message or store it
· Invoke Web services to retrieve data
· Respond to events or errors
· Provide content and topic-based message routing using the publish–subscribe         pattern



18. What is the need for config Manager?
 Ans : To Connect to the remote broker or local broker and to deploy the message flows Into the Broker.

19. How to check a broker is running or not?
    Ans : by using  mqsilist  -a which shows the currently running brokers.

20. If execution group is hanging, what is the first step to do?
Ans: It normally means you have a message flow that is badly written and has gone into a wait state (probably for an external resource). Or the flow has called some Java code that does its own thing. 

You can force it to stop with mqsistop -i <brokername> 

That will stop the entire broker. Look at the flows and correct them, make sure all external calls have a timeout specified (NB this includes data sources in ODBC).

21. What are the commands to deploy flows and other files?
Ans:You can deploy from the command line by using the mqsideploy command. 

22. Which all files can be deployed in broker?
  Ans: message sets, maps , ESQL files, subflows.
23. Where the deployment errors are being logged?
a. Activity Log
b. Standart error log
c. Logging in flow
d. Trace node
e. Monitoring events
f. Log4j
g. FileOutputNode
h. Database logging
i. Logging into Queue




No comments:

Post a Comment