Sunday, May 24, 2015

Oracle Service Bus Interview Question and Answers Part-7

Question:  What is Message Flow ?
Answer: Message Flow is OSB component which is part of proxy service. We define our business logic in message flow.

Question: Can we delete Start Node in Message flow ?.
Answer: Start Node comes default in message flow once we create a proxy service. Every message flow will always have a start node and we can't delete the start node in message flow.

Question: Can we add multiple pipeline pair in one message flow ?
Answer: Yes, we can add more than one pipeline pair in one message flow.

Question: Can we directly add actions under request or response pipeline ?
Answer: No, we can't add actions directly under request or response pipeline, we need to add stage node in request or response pipeline and inside that stage, we can add all required actions.

Question: Can we have more than one route node in message flow ?
Answer: No, we can't add more than one route node in message flow.

Question: Which node you will use when you need to route the message based on content ?
Answer: We will use Conditional Branch to route the message to different business services based upon content, this is also called content based routing.

Question: Which node you will use to route the message based upon operations ?
Answer:  We will use operation Branch to route the message to different business services  based upon operation.

Question: Can we delete the default branch in conditional or operational branch ?
Answer: No, we can't delete the default branch in conditional or operational branch.

Question: Can we add more than one route in one conditional or operation branch ?
Answer: Yes, if we more than one branch then we add one route node in each branch as each branch will be independent and only one branch will execute at one time.

Question: Can we add stage node under route node ?
Answer: No, we can't add stage node under route node. Stage node can be added only under request and response pipeline or in error handlers.

Question:  What is Dynamic Routing action ?
Answer: This action is used when we need to route the message to business service dynamically that means at design time we don't know to which business service we have to route the message and that is determined at run time.

Question:  Which action we use to throw fault/error in message flow ?
Answer:  We use "raise-error" action to throw business fault in message flow.

Question:  What is reply action ?
Answer: It specify that immediate reply is sent to invoker.

Question:  What actions we use for OSB reporting ?
Answer: We use Alert, Log and Report for OSB reporting.

Question: Can we change the file name in message flow at runtime ?
Answer: Yes, we can change file name at runtime using Transport Header action.

Question: Can we change the endpoint URI of the external service that we invoke using business service ?
Answer: Yes, we can do it by using routing option action.


Oracle Service Bus Interview Question and Answer Part-6

Question:  By how many ways we can do OSB development ?

Answer: We can do development in OSB by two ways. Either we can use Eclipse which is IDE tool for OSB or we can use SB console for the development.


Question: Will you prefer Eclipse or SB console for OSB development ?.

Answer: It is simple to work with SB console as compared to eclipse, so during initial phase we can opt for SB console and later go for eclipse. When we work at enterprise level, Eclipse is always recommended.


Question: Do we need to create a session when we develop projects in Eclipse ?

Answer: No, we need not to create a session when we develop projects in Eclipse, session will only come into picture when we deploy the project to server from eclipse.



Question: Can multiple users work on SB console at one time?

Answer: Yes, multiple users with different users can work on SB console at same time as session will be created for each users individually.


Question:  Can we test the proxy service from Eclipse ?

Answer: Yes, we can test the proxy service from Eclipse, for that we need right click on the proxy service and then click on Run As and run it on server.


Question: Can we create Xquery transformation in design mode in SB Console ?

Answer: No, we have to write Xquery in source mode. We can create Xquery transformation in Eclipse.


Question: Do we have the option to test the Xquery Transformation ?

Answer: Yes, we can test the Xquery transformation.


Question: Can we use XSLT file in OSB ?

Answer: Yes, OSB support both Xquery and XSLT.