Be jug 090611_apacheservicemix
Upcoming SlideShare
Loading in...5
×
 

Be jug 090611_apacheservicemix

on

  • 2,846 views

BeJug presentation of Apache ServiceMix with Camel, ActiveMQ, CXF and target architectures on ESB platform

BeJug presentation of Apache ServiceMix with Camel, ActiveMQ, CXF and target architectures on ESB platform

Statistics

Views

Total Views
2,846
Views on SlideShare
2,811
Embed Views
35

Actions

Likes
0
Downloads
55
Comments
0

3 Embeds 35

http://swazzy.com 24
http://alex4u2nv.com 9
http://www.docshut.com 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Be jug 090611_apacheservicemix Be jug 090611_apacheservicemix Presentation Transcript

  • Integra6on  with     Apache  ServiceMix  and  Camel   BeJUG,   Louvain-­‐La-­‐Neuve,  9th  June  2011   Charles  Moulliard   Sr.  Principal  Solu6on  Architect   Apache  CommiOer   A  Progress  So3ware  Company  1   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Speaker  background     Charles  Moulliard   •  Engineer  in  Agronomy  &  Master  in  Zoology   •  17  years  of  experience  in  IT  world  development  (J2EE,  .NET)   •  Specialised  in  new  technologies  web/Internet  &  integra6on   •  Project  manager  in  bank,  financial,  telco,  insurance  and  transport   world   •  Solu6on  Architect  at  FuseSource       •  CommiOer  on  projects  :   – Apache  ServiceMix,     – Apache  Karaf  (PMC)  &     – Apache  Camel   •  Author  of  book  :  "ServiceMix  and  Karaf  in  Ac6on  –  Mannings"  2   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Goal   «  Introduce  some  projects  of  the  Apache  founda6on  Integra6on   oriented  like  Camel,  ServiceMix     and     Present  target  Architectures  »    3   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company   View slide
  • Agenda     Integra6on  with  Camel  and  ServiceMix   •  Demys6fy  ESB   •  ServiceMix  -­‐  mul6-­‐containers  plaform   •  Presenta6on  of  projects  -­‐  Camel,  CXF,  Karaf  et  Ac6veMq   •  Descrip6on  of  architectures   –  Messaging   –  Osgi   –  Messaging  +  osgi   –  web   •  High  availability,  scalibility  and  clustering   –  Ac6veMQ,  ServiceMix   –  Ac6veMQ  and  ServiceMix   •  Cloud  and  provisioning  4   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company   View slide
  • «  Demis6fy  the  ESB  and  present  Apache  ServiceMix  plaform  »  5   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • ESB  -­‐  ServiceMix      Demys6fy  the  concept  -­‐   Enterprise  Service  Bus      This  is  not   →    Nor  a   →      But  an  exchanging  plaform        of  messages,  objects        moving  within  a  transport   layer  6   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • ESB  -­‐  ServiceMix  (1)    llow  to  separate  the   A business  layer  from  those   which  will  transport  the   informa6on  and  transform  it    rovide  connectors   P (=endpoints)  to  collect   informa6on  and  send  it  on   the  bus  as  messages    essages  are  transformed   M using  marshallers  7   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • ServiceMix  -­‐  Container  ship     erviceMix  –  Project  of  the  Apache  Founda6on   S   tarted  in  2005  to  implement  the  Java  Business  Integra6on   S specifica6on     ecoupling  of  the  components  (business,  technical)  by  using   D XML  messages     efine  a  model  to  package/deploy  applica6ons  (SU/SA)     D   ayer  transport  is  called    Normalised  Messaging  Router       L8   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • ServiceMix  -­‐  Container  ship  (2)   Message is ACK or ERRRouting isdefined into Normalizedthe SU = XML exchanges9   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • ServiceMix  -­‐  Container  ship  (3)    JBI  approach  is  interes6ng  but  restric6ve     • XML  format   • Encapsula6on  of  the  rou6ng   • Components  dvlpt  (25  vs  more  than  100  for  camel)   • Few  support  from  IT  actors  (IBM,  Oracle,  …)  to  improve  exis6ng  spec  1.0     2.0   • We  can  make  the  parellism  with  EJB  story  ….     ecision  has  been  taken  3  years  ago  by  members  of  project  to   D • Become  independent  of  JBI  spec  (we  support  it  but  op6onal)   • Adopt  Camel  as  the  new  rou6ng  bus   • Propose  a  new  kernel  (=  meaning  a  new  Architecture  design)   • Extend  the  idea  of  the  project,  plaform  to  become  a  mul6-­‐container  or   container  ship  10   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • SMX  -­‐  Container  ship  (4)     erviceMix  4   S   ased  on  an  OSGI  kernel   B • Apache  Felix   • Eclipse  Equinox     hy  →  offers  modularity,  jars   W management  and  versioning     erviceMix  becomes  an   S Integra6on  Plaform  for   opensource  projects   • Camel   • CXF   • Ac6veMQ,   • Aries  (JPA,  Transac6on,  JNDI)   •   ….      11   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Karaf  –  Heart  of  ServiceMix     irthdate  -­‐  16th  of  June  2010   B   un6me  using  an  OSGI  server  :   R • Apache  Felix   • Eclipse  Equinox     rovide  a  lightweight  container  where   P  Applica6ons    Composants    Routes      ...      can  be  deployed  12   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Karaf  –  Heart  of  ServiceMix  (1)     <<jvm>> :ServiceMix4 Container Container Container Container Container Container Lightweight container (Apache Karaf) OSGI Kernel (Apache Felix / Eclipse Equinox) Java Boot (Register as service - Wrapper)13   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Karaf  –  heart  of  ServiceMix  (2)       aracteris6cs  :   C  Administra6on  console  (locale,  remote,  ssh,  web,  jmx)      Provisioning  system  (features)      Hot  deployment  and  configura6on  management      Instances  management      Security  integra6on  (JAAS  →  ldap,  jdbc,  file)      Logging  management  (log4j,  logger,  commons  logging,  ….)     …  let’s  have  a  look  with  a  demo  …        14   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Which  container  (s)    The  plaform  is  «  modular  »  because  we  can  select  the     librairies,  containers  that  we  would  like  to  use   Jetty, Pax Web Camel, JBI Integration Web CXF Spring, Blueprint Web Services IoC ActiveMQ Middelware Java15   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • «  Camel  the  Integra6on  Framework  of  the  Enterprise  PaOerns  -­‐   EIP  rou6ng  messages  through  the  bus  »  16   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel    Birthdate  -­‐  March  2007    OpenSource  Integra6on  Framework  implemen6ng                  EIP  paOerns  (book  published  in  2005  by  Gregor  Hohpe)    Why  EIP    To  provide  word  defini6on,  grammar  and  language   when  designing  integra6on  projects    Camel  uses  a  Domain  Specific  Language  transposing  the  EIP   paOerns  into  Java,  XML    It  supports:   •  In  memory  bus      Alterna6ve  to  JBI  using  NMR   •  Route  objects    can  be  XML,  File,  Stream,  Bytes,…     •  Transac6onal  architecture,   •  Sync/Async  exchanges,   •  Threads  Management,    17   • Copyright  ©  2010  Progress  Sexcep6on  nd/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     Error  and   o3ware  Corpora6on  a handling   A  Progress  So3ware  Company  
  • Camel  (1)     More  than  50  paOerns  are  implemented   hOp://camel.apache.org/enterprise-­‐integra6on-­‐paOerns.html  18   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel  (2)    More  than  100  components   hOp://camel.apache.org/components.html  19   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel  (3)    18  data  formaters  to  simplify   data  exchange  between  layers,   applica6ons  connected    Example  :  JAXB,  Bindy,  SOAP    Uses  marshaler  (xml    object)   and  unmarsharler  (object     xml)    Will  be  typically  use  in  IN,  OUT   flows     hOp://camel.apache.org/data-­‐format.html  20   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel  (4)   The  model  –>  Content  Based  Router   and  its  DSL  language  21   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel  (5)  22   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel  (6)  23   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel  (7)  24   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel  (8)   URI  =  «    component  name  »  and  proper6es  25   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel    Java  DSL  26   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel    Route  Camel  +  Java  DSL  27   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel     Endpoints  and  predicate  can  be  provided  into  the                                   camel  route  directly  28   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel    Integra6on  with  IntelliJ,  Eclipse,  NetBeans  29   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel  (9)    Instead  of  Java,  use  Spring  /  XML  DSL  30   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Camel  (10)    IDE  assistance  31   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • «  CXF  –  The  tool  to  generate  Web  Services  »  32   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • CXF     Merge  of  2  projects(Cel6c  and  Xfire)     Simplify  the  crea6on  and  deployment  of  webservices                  2  approaches  :  java  to  wsdl  or  wsdl  to  java.     Support  the  following  standards  :   •  JAX-­‐WS  :  Web  Services  (XML/SOAP)   •  JAX-­‐RS  :  RESTfull  service  (JSON)   •  SOAP  1.1,  1.2,  WSDL  1.1     •  WS-­‐Security  :  securise  the  connexion  client/server  or  vice  versa   •  WS-­‐Addressing  :  standardize  the  data  exchange  in  the  SOAP  Header   for  the  rou6ng   •  WS-­‐RM  :   message  delivery  guaranty    33   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • CXF  (1)   To  use  it,  simply  add  cxf  maven  plugin  into  the   pom  of  the  project   <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxf-version}</version> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <configuration> <sourceRoot> ${basedir}/target/generated/src/main/java </sourceRoot> <wsdlOptions> <wsdlOption> <wsdl> ${basedir}/src/main/resources/report.wsdl </wsdl> </wsdlOption> </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> </plugin>34   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • CXF  (2)      …  and  configure  a  spring  file  <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/cxf" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/cxfhttp://camel.apache.org/schema/cxf/camel-cxf.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml"/> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/> …. <cxf:cxfEndpoint id="reportIncident" address="http://localhost:9080/incident" wsdlURL="etc/report_incident.wsdl" serviceClass="org.apache.camel.example.ReportIncidentEndpoint"> </cxf:cxfEndpoint> …</beans> 35   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • «  Ac6veMQ  –  broker  and  messaging  factory  »  36   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Ac6veMQ  -­‐  MoM  layer     A  high  performance,  reliable  messaging  fabric,  suppor6ng  JMS,  C,  .Net,  and   other  frameworks     Offers  persistance  for  messages  and  bridge  between  ServiceMix  instances  Clients connect to the Networkbroker using connectors controlconnectors with how the brokersimple URIs interacts with other brokers for discovery, replication, Topics and queues created failover, clustering and store & dynamically. forward. … all based on a flexible Spring- File & JDBC-based based core. message stores supported.37   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • FUSE  Message  Broker  (Apache  Ac6veMQ)     Point  to  Point   •  Sender/producer  sends  messages  to  a  queue.   •  Receiver/consumer  listens  for  messages  from  the  queue   •  Messages  are  stored  un6l  read  (or  expired)   •  Messages  can  be  persisted  on  disk   •  Messages  are  read  only  once.   <<jvm>> frodo:ActiveMQ p:Producer Foo:File c1:Consumer m m 1: Producer sends a 2: Consumer reads message to the broker the message38   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • FUSE  Message  Broker  (Apache  Ac6veMQ)     Publish  to  subscribe   •  A  JMS  client  sends  message  to  the  topic.   •  The  JMS  broker  sends  message  to  all  subscribers  that  are  currently   alive.   –  Alterna6vely,  durable  subscrip-ons  can  be  used  so  that  all   subscribers  will  receive  message  even  if  not  alive  at  6me  of  sending   •  Messages  are  read  several  6mes  (rela6on  1  to  many)   <<jvm>> m frodo:ActiveMQ s1:Subscriber p:Producer Foo:Topic m m s2:Subscriber39   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • How  the  Apache  products  relate  to  each  other…   <<supports transport>> <<supports transport>> ActiveMQ <<implements flow with>> ServiceMix CXF <<deploy into>> <<supports activemq endpoints>> <<deploy into>> <<supports cxf endpoints>> Camel <<supports jbi endpoints>> <<deploy into>>40   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • «  What  are  the  Architectures  that  we  can  design  with   ServiceMix,  Camel,  Ac>veMq  »  41   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Architecture  -­‐  Messaging    The  bus  operates  the  exchanges  between  the  endpoints   using  Camel,  NMR,  JBI   <<jvm>>   FTP   ServiceMix4   Web  Service   BUS   Bean<<MyBean>>   from(FTP)   from(«  cxf:bean:myWS  »)   .beanRef(«  myBean  »);   .beanRef(«  myBean  »)  ;  42   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Architecture  -­‐  Java     The  OSGI  plaform  proposes  a  Service  Registry  (comparable   to  JNDI)  where  "interfaces"  are  registered      Clients  access  to  the  service  using  lookup  mechanism   <<jvm>>   A ServiceMix4   «  Interface  »   Service   DAO   PoJo   Hibernate/JPA   C B OSGI  registry  <bean  id="incidentServiceTarget"  class="org.apache.camel.service.impl.IncidentServiceImpl">     <property  name="incidentDAO">       <osgi:reference  interface="org.apache.camel.dao.IncidentDAO"/>      </property>  </bean>   43   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Architecture  –  Messaging  +  Java    Decoupling  of  the  "services"  from  integra6on  layer   <<jvm>>   ServiceMix4   C  «  Interface  »   Service   DAO   PoJo   Hibernate/JPA   OSGI  Registry   from(«  cxf:bean:myWS  »)   .to(«  bean:validate  »)   B .beanRef(«org.bejug.jpaService»);   A Bean     Web  Service   Validate  44   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Architecture  –    Java  +  Web     ServiceMix  is  a  web  plaform,  it  uses    JeOy  Web  Applica6on   Server,  Pax  Web  –  a  tooling  for  war  and  OSGI  HTTP  Service  to   register  Servlet,  …   <<jvm>>   A ServiceMix4   «  Interface  »   Service   Hibernate/JPA   DAO   PoJo   C Web   B Applica-on   OSGI  registry   Bundle   OSGI  Run-me   B A 45   Bean     Web  Service   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company   Validate  
  • Only  one  ServiceMix  instance    Deployment  unit    bundle  (=  jar  with  addi6onal  data  in   MANIFEST.mf  file    Several  camel  routes  can  be  deployed  in  different  bundles,   cross-­‐communica6on  via  NMR  bus  (name  is  the  same  but   different  from  JBI)   NMR  46   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • What  can  I  do  when  x  instances  are  required     When  we  need  asymetric  deployment  because  CPU,  memory  is   not  sufficient  then    we  use  Ac6veMQ  to  interconnect  the   instances  and  persist  messages   47   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • «  High  availability,  scalability  and  clustering  »  48   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • High-­‐availability  -­‐  Ac6veMQ    2  mechanisms  :  pure  Master/Slave  et  Shared  message  store     <<jvm>> <<jvm>> frodo:ActiveMQ frodo:ActiveMQ Master state The brokers replicated compete to with the slave acquire lock on the shared system (file or DB) <<jvm>> <<jvm>> samwise:ActiveMQ samwise:ActiveMQ49   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • High  Availability  -­‐  ServiceMix     Only  one  mechanism  is  available  –  Lock  based  (File,  DB)     Bundles  can  be  deployed  in  ac6ve  or  passive  mode  50   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • High-­‐Availability  –  Amq  and  Smx     Combine  Ac6veMQ  (shared  store)  anf  ServiceMix  (shared  lock)     Network  of  brokers   Camel - FTP SMX4 Actif (Master) BUSHeadquarter queue:order from(ftp) bean://order .to(amq:queue:order) queue:order queue:order NetWork of BUS Master from Broker Regional office (amq:queue:order) .bean://order bean://order Camel - WS queue:order BUS BUS Slave queue:order from (amq:queue:order) from(ftp) .bean://order .to(amq:queue:order) SMX4 Passive (Slave) 51   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Cloud,  Provisioning    FuseSource  Fabric  based  on  Apache  Zookeeper    Distributed  coordina6on  service  highly  available  using  a   repository  for  cluster  configs  and  the  node  (run6me)     ACLs   Data exchange <<Zookeeper:toto>>   Sync   <<Zookeeper:nestor>>  52   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Cloud,  Provisioning  (2)  53   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Provisioning  –  local  and  remote    Solu6on  to  deploy  locally  or  remotelly    Idea  :  we  have  a  profile  defining  what  we  would  like  to  deploy   and  configure  and  link  it  to  an  agent  =  instance  of  ServiceMix   karaf@root> fabric:create-profile --parents default webserver karaf@root> zk:create -r /fabric/configs/versions/base/profiles/webserver/ org.fusesource.fabric.agent/repository.karaf mvn:org.apache.karaf.assemblies.features/standard/2.2.1-SNAPSHOT/xml/features karaf@root> zk:create -r /fabric/configs/versions/base/profiles/webserver/ org.fusesource.fabric.agent/feature.war war karaf@root> fabric:create-agent --profile webserver --parent root test54   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Cloud     Fabric  allows  to  register  camel  HTTP  endpoints  with  a  logical   name  (we  dont  need  to  know  Ip/Hostname)     Provide  a  new  strategy  for  Web/HOp/  WebServices  architecture   with  loadbalancing  between  the  instances  of  the  cloud   <from uri="fabric:BeJug: jetty:http://10.0.0.1:9090/"/><from uri="direct:A/><to uri="fabric:BeJug"/> <<Zookeeper:2>> <from uri="fabric:BeJug: <<Zookeeper:1>> jetty:http://10.0.0.2:9090/"/> <<Zookeeper:3>> Discovery  mechanism   55   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • «  End  of  the  first  part  »  56   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Demo     rom  theory  to  «  pra6que  »   F   ransposi6on  of  the  EIP  into  camel  DSL   T   evelopment  of  the  Camel  routes   D   esign  of  the  mul6-­‐6ers  architecture  (service,  DAO,  web   D services,  …)     mplementa6on  of  the  web  services,  web  site   I   ackaging  and  deployment   P57   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Context   hOp://camel.apache.org/tutorial-­‐osgi-­‐camel-­‐part2.html  58   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Code  Source     emo  1  –  Integrate  camel,  web  services,  web  technologies  in  a   D Java  project  with  Service,  DAO  and  persistence  layer   hOps://github.com/cmoulliard/camel-­‐osgi-­‐servicemix-­‐tutorial     emo  2  –  Use  FuseSource  Fabric  to  deploy  a  project  in  a  cloud   D architecture  and  use  camel-­‐fabric  to  loadbalance  requests   between  nodes  of  the  cloud  space   hOps://github.com/fusesource/fabric/tree/master/fabric-­‐ examples/fabric-­‐camel-­‐cluster-­‐loadbalancing      59   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Links     ntegra6on  -­‐  Camel  :  hOp://camel.apache.org   I   SB  -­‐  ServiceMix  :  hOp://servicemix.apache.org   E   un6me  -­‐  Karaf  :  hOp://karaf.apache.org   R   ebService  -­‐  CXF  :  hOp://cxf.apache.org   W   roker  -­‐  Ac6veMQ  :  hOp://ac6vemq.apache.org   B   SGI  EE  -­‐  Aries  :  hOp://aries.apache.org   O   useSource  :  hOp://fusesource.com/documenta6on/   F   IP  :  hOp://www.enterpriseintegra6onpaOerns.com   E   abric  :  hOp://fabric.fusesource.org/   F60   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company  
  • Questions ?More info  http://fusesource.com/products/Follow me on Twitter : http://twitter.com/cmoulliard LinkedIn : http://www.linkedin.com/in/charlesmoulliard My blog : http://cmoulliard.blogspot.com61   Copyright  ©  2010  Progress  So3ware  Corpora6on  and/or  its  subsidiaries  or  affiliates.  All  rights  reserved.     A  Progress  So3ware  Company