{"id":3388,"date":"2012-02-03T13:02:46","date_gmt":"2012-02-03T18:02:46","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=3388"},"modified":"2012-06-19T16:15:51","modified_gmt":"2012-06-19T21:15:51","slug":"1z0-451-working-with-mediator-components","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=3388","title":{"rendered":"1Z0-451: Working with Mediator Components"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Explain_the_Mediator_component_and_its_features\">Explain the Mediator component and its features<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Mediator_Component\">Mediator Component<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Features\">Features<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Define_business_events_and_the_Event_Delivery_Network_EDN\">Define business events and the Event Delivery Network (EDN)<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Overview\">Overview<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Local_and_Remote_Events_Boundaries\">Local and Remote Events Boundaries<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Create_and_configure_a_Mediator_service_component\">Create and configure a Mediator service component<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Create_Mediator_routing_rules\">Create Mediator routing rules<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#References\">References<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<p>This is part of <a href=\"?p=2265\">1Z0-451: Oracle SOA Foundation Practitioner Exam<\/a><\/p>\n<span id=\"Explain_the_Mediator_component_and_its_features\"><h2>Explain the Mediator component and its features<\/h2><\/span>\n<p>* See <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E17904_01\/integration.1111\/e10224\/partpage_ii.htm#BABDDIDA\">here<\/a>.<\/p>\n<span id=\"Mediator_Component\"><h3>Mediator Component<\/h3><\/span>\n<p>* Provides a lightweight framework to mediate between various components within a composite application.<br \/>\n* Converts data to facilitate communication between different interfaces exposed by different components that are wired to build a SOA composite application.<\/p>\n<span id=\"Features\"><h3>Features<\/h3><\/span>\n<p>* Content-Based and Header-Based Routing<br \/>\n* Synchronous and Asynchronous Interactions<br \/>\n* Sequential and Parallel Routing of Messages<br \/>\n* Transformations<br \/>\n* Validations: using Schematron or an XSD file.<br \/>\n* Java Callouts<br \/>\n* Event Handling<br \/>\n&#8211; supports subscribing to business events and raising business events.<br \/>\n* Dynamic Routing<br \/>\n&#8211; via business rules.<br \/>\n&#8211; outbound services can be called only over SOAP.<br \/>\n&#8211; No assignment, transformation, or validation can be performed.<br \/>\n&#8211; not possible for Oracle Mediators with a synchronous or one-way interface.<br \/>\n* Error Handling, supports both<br \/>\n&#8211; manual error handling<br \/>\n&#8211; fault policy<br \/>\n* Echo<br \/>\n&#8211; echoing source messages back to the initial caller after any transformations, validations, assignments, or sequencing operations are performed.<br \/>\n* Multiple Part Messages<\/p>\n<span id=\"Define_business_events_and_the_Event_Delivery_Network_EDN\"><h2>Define business events and the Event Delivery Network (EDN)<\/h2><\/span>\n<p>* See <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E17904_01\/integration.1111\/e10224\/obe_intro.htm#CHDIBHBE\">here<\/a>.<\/p>\n<span id=\"Overview\"><h3>Overview<\/h3><\/span>\n<p>* Business events do <em>not <\/em>care about client subscribers:<br \/>\n&#8211; Typically one-way, fire-and-forget, and asynchronous.<br \/>\n&#8211; Do not care if there are receivers.<br \/>\n&#8211; Do not care where receivers are and what they do with the data.<br \/>\n&#8211; Do not wait for receivers to complete.<br \/>\n* Use invocation if there is dependency on event receivers.<br \/>\n* A business event is defined using the event definition language (EDL) which contains:<br \/>\n&#8211; Global name: typically a Java package name.<br \/>\n&#8211; Payload definition: mostly XSD.<br \/>\n&#8211; Example:<\/p>\n<pre lang=\"xml\">\r\n<?xml version = '1.0' encoding = 'UTF-8'?>\r\n<definitions targetNamespace=\"\/model\/events\/edl\/BugReport\"\r\n xmlns:ns0=\"\/model\/events\/schema\/BugReport\"\r\n xmlns=\"http:\/\/schemas.oracle.com\/events\/edl\">\r\n   <schema-import namespace=\"\/model\/events\/schema\/BugReport\"\r\n location=\"BugReport.xsd\"\/>\r\n\r\n   <event-definition name=\"bugCreated\">\r\n      <content element=\"ns0:bugCreatedInfo\"\/>\r\n   <\/event-definition>\r\n\r\n   <event-definition name=\"bugUpdated\">\r\n      <content element=\"ns0:bugUpdatedInfo\"\/>\r\n   <\/event-definition>\r\n<\/definitions>\r\n<\/pre>\n<p>* Business events are <em>deployed <\/em>to the metadata service (MDS) repository.<br \/>\n&#8211; EDL publishing: deploying a business event to MDS along with its artifacts such as XSDs.<br \/>\n&#8211; EDL can <em>not <\/em>be unpublished.<br \/>\n* Business events are <em>published <\/em>in the Event Delivery Network (EDN).<br \/>\n&#8211; The EDN runs within every SOA instance.<br \/>\n&#8211; Raised events are delivered by EDN to the subscribing service components.<br \/>\n* Mediator and BPEL service components can subscribe to and publish events.<br \/>\n* EDN has two different implementations:<br \/>\n&#8211; EDN-DB (preferred): uses an Oracle database as a back-end store.<br \/>\n&#8211; EDN-JMS: use a generic JMS queue as a back-end store.<\/p>\n<span id=\"Local_and_Remote_Events_Boundaries\"><h3>Local and Remote Events Boundaries<\/h3><\/span>\n<p>* Local event connection.<br \/>\n&#8211; Used if receiver resides on the same WebLogic Server.<br \/>\n&#8211; Synchronous subscriptions are executed synchronously.<br \/>\n* Remote event connection.<br \/>\n&#8211; Used if receiver resides on a different container (different JVM).<br \/>\n&#8211; Only supports asynchronous subscriptions.<\/p>\n<span id=\"Create_and_configure_a_Mediator_service_component\"><h2>Create and configure a Mediator service component<\/h2><\/span>\n<span id=\"Create_Mediator_routing_rules\"><h2>Create Mediator routing rules<\/h2><\/span>\n<p>Next>> <a href=\"?p=3517\">Human Workflow<\/a><\/p>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E17904_01\/integration.1111\/e10224\/med_gsmed.htm#CDFBFIEI\">Getting Started with Oracle Mediator<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is part of 1Z0-451: Oracle SOA Foundation Practitioner Exam Explain the Mediator component and its features * See here. Mediator Component * Provides a lightweight framework to mediate between various components within a composite application. * Converts data to &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=3388\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[107],"tags":[],"class_list":["post-3388","post","type-post","status-publish","format-standard","hentry","category-certification"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-SE","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3388"}],"version-history":[{"count":7,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3388\/revisions"}],"predecessor-version":[{"id":4754,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3388\/revisions\/4754"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}