Sunteți pe pagina 1din 3

Oracle Mediator Questions

1. What is role of Mediator?


Answer: Oracle Mediator provides a lightweight framework to mediate between various components within a composite application. Oracle Mediator converts data to facilitate communication between different interfaces exposed by different components that are wired to build a SOA composite application.

2. Difference between Mediator & OSB?


Answer: OSB is altogether different tool which is used for integration like SOA but the main purpose of OSB is to route the information and same we can do with mediator. he main difference two is! we go for Mediator when we want to route information between different components inside composite and go for OSB when we want to route the information between composites. Mediator is used light weight mediation and OSB is used for heavy weight mediation.

3. What is echo in Oracle Mediator?


Answer: he purpose of the echo option is to expose all the Oracle Mediator functionality as a callable service without having to route it to any other service. "or example! you can call an Oracle Mediator to perform a transformation! a validation! or an assignment! and then echo the Oracle Mediator back to your application without routing it anywhere else. "or synchronous operations with a conditional filter! the echo option does not return a response to the caller when the filter condition is set to false. #nstead! it returns a null response. he echo option is available for asynchronous operations only if the Oracle Mediator interface has a callback operation. #n this case! the echo is run on a separate thread.

4. What is rese uencin! in Mediator ?


Answer: he rese$uencing feature of the Oracle Mediator reorders sets of messages that might arrive to the Oracle Mediator in the wrong se$uence. %ou can define rese$uencing for all operations in an Oracle Mediator or for a specific operation.

". #ese uencin! o$tions a%ailable in &ediator?


Answer: Standard &based on input #d' "#"O&based on time' Best (fforts

'. What is Sche&atron (alidation?


Answer: Schematron is an )M* schema language! and it can be used to validate )M* contents in an )M* payload.

). *+$es of routin! e,ist in Mediator?


Answer: Static + ,ynamic -outing.

-. What is D+na&ic #outin! in Mediator ?


Answer: A dynamic routing rule lets you externali.e the routing logic to an Oracle -ules ,ictionary! which in turn enables dynamic modification of the routing logic in a routing rule. /hen you choose to create dynamic routing rule then it creates a new business rule service component that is wired to the Oracle Mediator service component within the SOA composite of the Oracle Mediator service component. he business rule service component includes a rule dictionary. he rule dictionary is a metadata container for the rule engine artifacts! such as fact types! rulesets! rules! decision tables and so on.#nside routing rules! you need to set endpoint 0-#.

.. *+$es of Static #outin! rules?


Answer: Se$uential + 1arallel.

1/.

Difference between Se uential & 0arallel static routin! rules ?

Answer:

Se uential
Oracle Mediator evaluates routings and performs the resulting actions se$uentially. Se$uential routings are evaluated in the same thread and transaction as the caller

$arallel
Oracle Mediator $ueues and evaluates routings in parallel in different threads. he messages of each Oracle Mediator service component are retrieved in a weighted! round2robin fashion to ensure that all Oracle Mediator service components receive parallel processing cycles. his is true even if one or more Oracle Mediator service components produce a higher number of messages compared to other components. he weight used is the message priority set when designing an Oracle Mediator service component. 3igher numbers of parallel processing cycles are allocated to the components that have higher message priority. %ou can set the 0riorit+ field in the Mediator (ditor to indicate the priority of an Oracle Mediator service component. 1riorities can range from .ero to nine! with nine being the highest priority. he default priority is four. Oracle Mediator initiates a new transaction for processing each parallel rule. he initiated transaction ends with an en$ueue to the Oracle Mediator parallel message dehydration store. "or example! if an Oracle Mediator service component has one parallel routing rule! one message is en$ueued on the Oracle

Oracle Mediator always enlists itself into the global transaction propagated through the thread that is processing the incoming message. "or example! if an inbound 45A adapter invokes an Oracle Mediator! the Oracle Mediator enlists itself with the transaction that the 45A adapter has initiated.

Mediator parallel message dehydration store. he parallel message dispatcher to the store then initiates a transaction! reads the message from the database store! and invokes the target component or service of this routing rule. he transaction initiated by the listener thread is a completely new transaction and is propagated to the target components. Oracle Mediator propagates the transaction through the same thread as the target components while executing the se$uential routing rules. Oracle Mediator never commits or rolls back transactions propagated by external entities.

Oracle Mediator commits or rolls back transactions because it is the initiator of these transactions. 1f an o$eration or e%ent has both se uential and $arallel routin! rules2 first se uential routin! rules are e%aluated and actions are $erfor&ed2 and then $arallel routin!s are ueued for $arallel e,ecution.

11.

Which static routin! rule su$$ort fault $olic+?

Answer: 1arallel rules only

S-ar putea să vă placă și