Oracle Service Bus Assignment

1. Why we use Split-Joins in OSB?

Answer:

Split-Joins are used in OSB for parallel processing of messages. The request payload can be split and processed by multiple other services in parallel. The results or errors of these parts will be later joined together and sent back in the response. This improves the performance when compared to the same amount of processing in a sequential manner. There are two types of split-joins.

Static: This splits a request payload into a fixed number of new branches. The number of services to be invoked is determined at design time.

Dynamic: This creates new branches dynamically according to the contents of the request payload. This uses conditional logic to determine the number of branches. All requests are handled simultaneously, and the responses are joined into a single reply.

2. Can we use more than one route node in message flow?

Answer:

No, there can be only one route node in a message flow and it comes in the end of the message flow.

3. When we use service Account?

Answer:

Service account is used by proxy and business services to map user credentials for target servers where authentication is required. It can also be used for transport-level authentication to remote web services for HTTP basic authentication. There are three types of service accounts.

Static: The credentials given in this configuration will be used in the outbound request.

Pass-through: The credentials given in the inbound request will be used in the outbound request.

Mapping: The username given in the inbound request will be mapped to the username of the target servers. The password for the target server will be given in a separate list along with the username.

4. How file pooling works in OSB?

Answer:

File polling can be done in two ways.

File transport protocol: We can use file protocol available in proxy service to poll the file. We have to give the path from where the file has to be read and can specify in a regular expression also. We can specify other properties like polling interval, read limit, sort by arrival, scan subdirectories, pass by reference, post read action, staging directory, archive directory, error directory and request encoding.

File adapter: we can create JCA file adapter and generate proxy service from that. Here we can specify the properties like include files, recursive, useheaders, pollingfrequency, minimumage, physicaldirectory, deletefile.

5. What is SLA alert in OSB?

Answer:

A service-level agreement (SLA) is a contract between a service provider and a service consumer on how soon the service should respond. If a service provider's service takes more than 5 seconds to respond but as per the agreement it should take only 100 milliseconds, this means that the agreement is violated and hence the SLA alert will be fired in OSB monitoring framework. We can use this to monitor the performance of the services. SLA alerts are automated responses to SLA alert rules violations and are displayed on the Dashboard and the Alert History page.

6. Can we test the proxy service from Eclipse?

Answer:

Use of Eclipse for OSB was in 10g and 11g. In 12c, we can test the proxy service from JDeveloper. Right click on the proxy service and then click on Run. This will run the proxy service in the integrated weblogic server.

7. What is Message Flow?

Answer:

A message flow defines the implementation of a proxy service. It has components like start node, pipeline node, branch node, route node and error handling. Request and response transformations are usually done in the pipeline node.

8. What is Dynamic Routing action?

Answer:

This action is used when we need to call a business service dynamically. At design time we will not know to which business service to be called and this is determined at run time by specifying a static/dynamic XQuery/XSLT file or XQuery expression.

9. Can we delete the default branch in conditional or operational branch?

Answer:

We cannot delete the default branch. We can leave it empty if it is not used or required.

10. Which node you will use to route the message based upon operations?

Answer:

Operational Branch.

Note:Please send us back with your answers, we will evaluate and process the completion certificate immediately.