petals distributed service bus illustrated

13
PEtALS Enterprise Service Bus h3p://petals.ow2.org

Upload: christophe-hamerling

Post on 26-May-2015

1.494 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: PEtALS Distributed Service Bus Illustrated

PEtALSEnterpriseServiceBus

h3p://petals.ow2.org

Page 2: PEtALS Distributed Service Bus Illustrated

PEtALSJBIextension

•  JBIspecificaAondefinesBC,SE,configuraAon,management,messageformat…

•  PEtALSextendsthespecificaAontoprovideadistributedServiceBus

•  AlltheservicesarepotenAallyreachablebyalltheservicesfromallthePEtALSnodes– ThisisanunifiedDistributedServiceBus.–  Itistotallytransparentfromtheconsumerpointofview!

Page 3: PEtALS Distributed Service Bus Illustrated

PEtALS PEtALS

RESTBC

SOAPBC

FTPBC

BPELSE

PEtALS

RESTBC

SOAPBC

FTPBC

BPELSE

Registry Registry

Registry

DistributedServiceBus

Page 4: PEtALS Distributed Service Bus Illustrated

ServiceEngine(SE)

•  Provideaninternaltechnicalservice:– BPELprocessor– XMLtransformaAon(XSLT)– ContentBasedRouAng– RuleswithJbossDrools– EntrepriseIntegraAonPa3ern–  JSR181withAxis2– POJO– …

Page 5: PEtALS Distributed Service Bus Illustrated

BindingComponent(BC)

•  ABindingComponentisusedto– Exposeinternalservicesasexternalones

•  Forexample,exposearulesserviceasaWebService

– AccesstoanexternalService•  Forexample,accesstoanexternalWebService

•  ItsroleisthemessageprotocoladapaAon– Forexample,exposeanexternalEJBasWebService

•  SOAP,REST,EJB,FILE,FTP,Mail,Database,…

Page 6: PEtALS Distributed Service Bus Illustrated

InternalEndpointacAvaAon

•  AnendpointisacAvatedbydeployingaconfiguraAonartefacttothecomponent(BCorSE)

•  ThisconfiguraAonartefactisaZIParchivecontaining–  aXMLfilewithsomebasicinformaAon

•  TheServiceName •  TheInterfaceName•  TheEndpointName•  AreferencetotheWSDLdescripAon•  AddiAonalparameters(specifictocomponent,ieBPELprocessfilename,Droolsfilename…)

–  TheWSDLfile(opAonal)–  AddiAonalresourceslikeBPELprocessfile,Droolsfile…

•  TheacAvatedendpointisregisteredintheTechnicalServiceRegistryandisnowreachablebyalltheServiceBusServicesConsumers

Page 7: PEtALS Distributed Service Bus Illustrated

ComponentDeployment

BC

Comp

AdminService

1. Deploy + Start

2.Bind

Page 8: PEtALS Distributed Service Bus Illustrated

EndpointAcAvaAonIllustraAon

BC SE

SA

AdminService

1. Deploy + Start

2. Register Enpoints

3. Bind

Page 9: PEtALS Distributed Service Bus Illustrated

PEtALS

FTPBC

BPELSE

Registry

SOAPBC

WSClient

http://localhost:8084/petals/services/BPELService

Exposing/ConsumingServices

•  TheSEprovidesaJBIService•  TheBCconsumestheJBIServiceandexposesittotheoutside

Page 10: PEtALS Distributed Service Bus Illustrated

ServiceOrchestraAonSampleTheTravelService

PEtALS

RESTBC

BPELSE

Registry

SOAPBC

http://localhost:8084/petals/services/TravelService

YahooRESTWeatherService

AirlineWebService

HotelEJBServiceEJBBC

WSClient

XSLTSE

Page 11: PEtALS Distributed Service Bus Illustrated

AgileServiceOrchestraAon

•  NowabletoorchestratenotonlyWebServices– Noma3eroftheservicetype,allareseenasJBIServicesfromtheorchestrator

– Noma3erofprotocoltransformaAon,itisthejoboftheBindingComponent

•  Flexibility:– ReplacethehotelEJBservicebyahotelRESTService

– TheBPELdeclaraAonremainsthesame!

Page 12: PEtALS Distributed Service Bus Illustrated

PEtALSESBMonitoring

Registry

MonitoringAPI(SOAP,JMX)SOAP

BC

FractalMonitoringService

FractalComponentA

FractalComponentB

PEtALSWebGUI

Page 13: PEtALS Distributed Service Bus Illustrated

PEtALSMonitoring(lightversion)

•  Endpoints(InternalandExternal)andComponentsarewrapped

•  Wrapperscollectandsenddatatothemonitoringservice

•  MonitoringServicepersists,process,aggregates,etc

•  MonitoringServiceexposeanAPI(SOAP,JMX)