Studio+Update+Sites4Message ProcessorsComponents.docx

上传人:b****1 文档编号:2392364 上传时间:2022-10-29 格式:DOCX 页数:90 大小:852.88KB
下载 相关 举报
Studio+Update+Sites4Message ProcessorsComponents.docx_第1页
第1页 / 共90页
Studio+Update+Sites4Message ProcessorsComponents.docx_第2页
第2页 / 共90页
Studio+Update+Sites4Message ProcessorsComponents.docx_第3页
第3页 / 共90页
Studio+Update+Sites4Message ProcessorsComponents.docx_第4页
第4页 / 共90页
Studio+Update+Sites4Message ProcessorsComponents.docx_第5页
第5页 / 共90页
点击查看更多>>
下载资源
资源描述

Studio+Update+Sites4Message ProcessorsComponents.docx

《Studio+Update+Sites4Message ProcessorsComponents.docx》由会员分享,可在线阅读,更多相关《Studio+Update+Sites4Message ProcessorsComponents.docx(90页珍藏版)》请在冰豆网上搜索。

Studio+Update+Sites4Message ProcessorsComponents.docx

Studio+Update+Sites4MessageProcessorsComponents

MessageProcessors

AfterMulereceivesamessagefromaMessageSource,itusesoneormoremessageprocessorstoprocessthemessagethroughaflow.

MessageProcessorscanbecategorizedbyfunctionasfollows:

∙ComponentsareflexibletoolswhichperformbusinesslogicimplementedinJavaandotherscriptinglanguages.

∙Filtersonlyallowcertainmessagestocontinuetobeprocessedinaflow.

∙Routerscontrolmessageflowtoroute,resequence,orsplitandaggregatemessagesinaflow.

∙Scopeswrapothermessagesprocessorssoastoenablethemtoperformtogetherasagroup.

∙Transformersconvertmessagepayloadtypeanddataformattofacilitatecommunicationbetweensystems.

Browsethesectionsbelowforfurtherdetails.

∙Components

∙Filters

∙Routers

∙Scopes

∙Transformers

∙BusinessEvents

Components

ThebuildingblocksknownasComponentsfallintothreecategories:

General,Script,andWebService.

Generalcomponentsexecutewheneveramessageisreceived.ThelogicembeddedintoGeneralcomponentscannotbemodified.ComponentssuchasLogging,FlowReference,andEchofallintothiscategory.

Scriptcomponentsdonotcontainpre-packagedlogic;insteadtheyallowthedevelopertospecifythelogic(intheformofacustomscriptoraJavaclass)toaddintothecomponent.Scriptcomponentsalsoallowyouto:

∙configureinterceptors

∙addSpringbeans

∙changethevalueorreferenceofaspecificpropertywithintheassociatedclass

TheJavaComponentallowsyoutoreferenceaJavaclass.TheotherScriptcomponentssupporttheGroovy,JavaScript,PythonandRubyscriptingengines.

WebServicecomponents,asthenameimplies,enableMuletouseSOAPandRESTfulprotocolstocommunicatewithexternalWebservices.TheSOAPandRESTfulcomponentsuseCXFandJerseyservicestoconvertmessagesfromJavatoXML.WebServicecomponentsalsoallowthedevelopertoselectordefinethelogictobeinvokedbycomponent.IfusingtheRESTfulcomponentyouonlyneedtoselectaJavaclassandaddascripttothecomponent.Ontheotherhand,SOAPconfigurationrequiresyoutodefineattributesandselecttheoperationmethodusedtopublishaSOAPWebservice.AsanexampleofhowtheCXFcomponentcanbeused,aSOAPmessagecouldbesenttoaWeb-service-enabledwebsitesuchasausedcarpricedatabase,withtheparametersneededforasearch.ThesitewouldthenreturnanXML-formatteddocumentwiththeresultingdata,e.g.,prices,modelandfeatures.Thedatareturnedisthenintegrateddirectlyintoathird-partywebsiteorapplication.

ConfiguringComponents

Toconfigureacomponent,double-clickonthecomponenttoopenthePropertiesEditorintheconsole.EverycomponentintheStudiopaletteincludestwocommonfields:

DisplaynameandNotes,bothofwhichareoptionalandshouldbefamiliartoStudiousers,becausetheyarecommontovirtuallyallStudiobuildingblocks.

Beyondthetwocommonfields,mostComponentsdonotrequireextensiveconfiguration.ThefivescriptcomponentsavailablewithinStudiosupportalmostidenticalpropertypanefields.

Fordetails,seetheindividualcomponentreferencepagesonhowtouseandconfigureeachtypeofcomponent.

ComponentsAvailableinAnypointStudio

ThefollowingthreetableseachdetailoneoftheStudioComponentsub-groups:

GeneralComponents

Generalcomponentsallowyoutoenhanceaflowbyattachingfunctionalitysuchasloggingordisplayingoutput.

Components

Description

Documentation

Echo

Outputsthemessagebeingprocessedtoalogordisplay,thenpassesthemessagetothenextbuildingblockintheflow.

EchoComponentReference

FlowReference

Thisbuildingblockcallsanotherexternalflow.Thecalledflowcanbeoneoftwotypes:

Asubflow,whichinheritstheprocessingstrategyandexceptionhandlingpropertiesofthecallingflow.

Achildflow,whichsetsitsownprocessingstrategyandexceptionhandlingproperties.

IfthecalledflowisSynchronous,thecallingflowwaitsuntilthecalledflowcompletesexecution,thenresumes.IfthecalledflowisAsynchronous,thecallingflowresumesexecutionimmediately.

FlowReferenceComponentReference

Logger

Logscustomstrings,includingstringsconstructedfromembeddedexpressions.Alsoallowsspecificationoflogginglevelandcategory.

LoggerComponentReference

ScriptComponents

ScriptcomponentsfacilitateSoftwareasaService(SaaS)integrationbyprovidinglanguage-specific"shells"tomakecustom-codedbusinesslogicavailableinaMuleapplication.YoucanwritethebusinesslogicinJava,Ruby,JavaScript,Groovy,orPython.

Components

Description

Documentation

Groovy

FacilitatestheintegrationofacustomscriptbackedbytheGroovyscriptengine.

GroovyComponentReference

Java

AllowsyoutoselectaJavaclasstobe

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 求职职场 > 面试

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1