SlideShare une entreprise Scribd logo
1  sur  18
Enterprise Service
Assembly with Apache
Tuscany SCA
Raymond Feng, Luciano Resende,
Simon Laws
IBM
PMC members of Apache Tuscany Project
Agenda
>   Apache Tuscany
>   SCA Benefits
>   SCA Tours - Online Travel Sample Scenario
       Demo
       Features
           Building components with Java, Spring, JEE
           Wiring components with Web services, JMS, HTTP
           Web2.0 in the service assembly
           Your app goes mobile with Android
           Deploying applications standalone, in OSGi, in JEE


                                                                 2
Apache Tuscany
>   Apache Tuscany provides a component based
    programming model which simplifies development,
    assembly and deployment and management of
    composite applications in SOA.

>   Apache Tuscany implements SCA standards
    defined by the OASIS OpenCSA and also provides
    extensions based on real user feedback.




                                                      3
What’s new with Apache Tuscany
>   1.x Code Stream
       OSOA Based SCA Specification
       Stable code base
       SCA Java 1.5 Released 05/31/2009

>   2.x Code Stream
       OASIS OpenCSA Specification
       OSGi enabled runtime
       SCA Java 2.0 M2 Released on 04/15/2009
           M3 Released being prepared

                                                 4
The power of Tuscany/SCA
>   Quick prototype for PoC to convince your boss in
    hours
       Mock up new functions (POJOs)
>   Reuse existing assets (Java classes, BPEL, Spring,
    JEE, OSGi)
>   Talk to external services transparently
       (WS, RMI, CORBA, EJB, JMS, …)
>   Expose services to other clients transparently
       (WS, JSONRPC, FEED, RMI, CORBA …)
>   Built-in interaction patterns:
       Req/Res, Oneway, Callback
>   Run and debug directly within the IDE

                                                         5
SCA Tours
  Online Travel Sample Scenario



http://svn.apache.org/repos/asf/tuscany/sandbox/travelsample




                                                               6
SCA Tours - Travel Booking (Page #1)
                           fu lla p p - u i ( 8 0 8 0 )                   fu lla p p - fr o n te n d ( 8 0 8 4 )   fu lla p p - p a c k a g e d tr ip ( 8 0 8 5 )


                                                                                                                                           T rip
                                                                               T r a v e lC a ta lo g                                      P a r tn e r




                                                                                                                                        Java
                          T us c anyS C A
                          T o u rs U I                    S C A To u rs
      > ls - ls a
                                                                                Java
                                                                                                                     fu lla p p - b e s p o k e tr ip ( 8 0 8 6 )



                                                                                                                                          H o te l
                                                                                                                                          P a r tn e r


                                                                                                                                               Java
                                                                                   T rip B o o k in g

                    123
                    456                                                                                                                   F lig h t
                    789      W id g e t                      Java                                                                         P a r tn e r

                                                                                                                                               Java



                                                                                   Java
                                                                                                                                           C ar
                                                                                                                                           P a r tn e r

                                                                                                                                               Java




                                                                                                                          fu lla p p - c u r r e n c y ( 8 0 8 3 )

                                                                                                                                      C u rre n c y
                                                                                                                                      C o n v e r te r


                                                                                                                                            E JB




                                                                                                                                                                     7
SCA Tours - Travel Booking (Page #2)

 fu lla p p - s h o p p in g c a r t ( 8 0 8 7 )                   p a ym e n t (8 0 8 1 )                                                    c re d ic a rd (8 0 8 2 )

                                                                                                                                                    C r e d itC a r d
     S h o p p in g C a rt                         P a y m e n tP r o c e s s


                                                                                                                                                             Java

                                                      S p rin g
       Java

                                                                                                                         p a y m e n tw e b

                                                                                                                    C r e d itC a r d U I
              C a r tS to r e                                                                E m a ilG a te w a y

                                                                                                                                                                          > ls - ls a
                             Java                                                                       S c rip t

                                                                                                                         S e rv le t




                                                                                                                                                                                        8
SCA Tours
  Online Travel Sample Scenario

                       DEMO

http://svn.apache.org/repos/asf/tuscany/sandbox/travelsample




                                                               9
Web 2.0 Client Application

                            SCA Tours             Travel
                                                  Catalog

                            Implementation.java   Implementation.java
    implementation.widget



  Embedded Tomcat
                                                  Trip
                                                  Booking

                                                  Implementation.java




                                                  Shopping
                                                  Cart

                                                  Implementation.java



                                                                        10
SCA Composite for Tuscany Widget
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
     targetNamespace="http://scatours"
     xmlns:scatours="http://scatours"
     xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
     xmlns:pp="http://www.example.org/PaymentProcess"
     name="ui">

   <component name="scatours">
      <tuscany:implementation.widget location="scatours.html"/>
      <service name="Widget">
         <tuscany:binding.http uri="/scatours"/>
      </service>
      <reference name="scaToursCatalog" target="SCAToursComponent/SCAToursSearch">
         <tuscany:binding.jsonrpc/>
      </reference>
      <reference name="scaToursBooking" target="SCAToursComponent/SCAToursBooking">
         <tuscany:binding.jsonrpc/>
      </reference>
      <reference name="scaToursCart" target="SCAToursComponent/SCAToursCart">
         <tuscany:binding.jsonrpc/>
      </reference>
   </component>
</composite>


                                                                                      11
Mobile Client Application with Android

                SCA Tours            Travel
                                     Catalog

               Implementation.java   Implementation.java




                                     Trip
                                     Booking

                                     Implementation.java




                                     Shopping
                                     Cart

                                     Implementation.java



                                                           12
Credit Card Payment Scenario

   creditcard.jsp

                                       RFC 119: Distributed OSGi
    implementation.web



     Tomcat
                                                             binding.rmi
                                      Credit Card                           Currency
                         binding.ws
                                      Payment                               Converter

                                       implementation.osgi                  implementation.osgi




   Web Service
     Client                           Equinox                              Equinox




                                                                                                  13
SCA composite for the Web component
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
        targetNamespace="http://creditcard"
        name="CreditCardPaymentWeb">
   <component name="CreditCardPaymentWeb">
      <implementation.web web-uri="" />
      <reference name="service">
         <interface.java
   interface="scatours.payment.creditcard.CreditCardPayment"/>
         <binding.ws uri="http://localhost:8082/CreditCardPayment" />
      </reference>
   </component>
</composite>

>   JSP
<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca"%>

<sca:reference name="service"
  type="scatours.payment.creditcard.CreditCardPayment" />

                                                                        14
Distributed OSGi with Tuscany/SCA

                                   Local Service



                    OSGi Service                      Local OSGi Service
    SCA Service     Registry                          Implementation
                                         CreditCard
                                          Payment
           Web
          Service
                                          Currency
                                         Converter              RMI



                                                       SCA References

                           SCA proxies




                                                                           15
OSGi services in the SCA domain
                CreditCard
                                                            Currency
                Payment
                                                            Converter

          Credit Card Payment
                                                           Currency Converter
          Bundle
                                                           Bundle




        Node #1                                                                Node #2
                                            SCA Domain




                                             binding.rmi
                     Credit Card                                   Currency
   binding.ws        Payment                                       Converter

                      implementation.osgi                          implementation.osgi




                                                                                         16
SCA composite for the OSGi bundle
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
  xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://creditcard"
  name="CreditCardPaymentComposite">

  <component name="CreditCardPaymentComponent">
     <tuscany:implementation.osgi
  bundleSymbolicName="scatours.creditcard.payment" bundleVersion="1.0.0" />
     <service name="CreditCardPayment">
        <binding.ws uri="http://localhost:8082/CreditCardPayment"/>
     </service>
     <reference name="currencyConverter">
        <tuscany:binding.rmi uri="rmi://localhost:8085/CurrencyConverter"/>
     </reference>
  </component>

</composite>


                                                                              17
Raymond Feng (rfeng@apche.org)
Luciano Resende (lresende@apache.org)
http://tuscany.apache.org




                                        18

Contenu connexe

Dernier

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 

Dernier (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

En vedette

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Enterprise Service Assembly with SCA using Apache Tuscany

  • 1. Enterprise Service Assembly with Apache Tuscany SCA Raymond Feng, Luciano Resende, Simon Laws IBM PMC members of Apache Tuscany Project
  • 2. Agenda > Apache Tuscany > SCA Benefits > SCA Tours - Online Travel Sample Scenario  Demo  Features  Building components with Java, Spring, JEE  Wiring components with Web services, JMS, HTTP  Web2.0 in the service assembly  Your app goes mobile with Android  Deploying applications standalone, in OSGi, in JEE 2
  • 3. Apache Tuscany > Apache Tuscany provides a component based programming model which simplifies development, assembly and deployment and management of composite applications in SOA. > Apache Tuscany implements SCA standards defined by the OASIS OpenCSA and also provides extensions based on real user feedback. 3
  • 4. What’s new with Apache Tuscany > 1.x Code Stream  OSOA Based SCA Specification  Stable code base  SCA Java 1.5 Released 05/31/2009 > 2.x Code Stream  OASIS OpenCSA Specification  OSGi enabled runtime  SCA Java 2.0 M2 Released on 04/15/2009  M3 Released being prepared 4
  • 5. The power of Tuscany/SCA > Quick prototype for PoC to convince your boss in hours  Mock up new functions (POJOs) > Reuse existing assets (Java classes, BPEL, Spring, JEE, OSGi) > Talk to external services transparently  (WS, RMI, CORBA, EJB, JMS, …) > Expose services to other clients transparently  (WS, JSONRPC, FEED, RMI, CORBA …) > Built-in interaction patterns:  Req/Res, Oneway, Callback > Run and debug directly within the IDE 5
  • 6. SCA Tours Online Travel Sample Scenario http://svn.apache.org/repos/asf/tuscany/sandbox/travelsample 6
  • 7. SCA Tours - Travel Booking (Page #1) fu lla p p - u i ( 8 0 8 0 ) fu lla p p - fr o n te n d ( 8 0 8 4 ) fu lla p p - p a c k a g e d tr ip ( 8 0 8 5 ) T rip T r a v e lC a ta lo g P a r tn e r Java T us c anyS C A T o u rs U I S C A To u rs > ls - ls a Java fu lla p p - b e s p o k e tr ip ( 8 0 8 6 ) H o te l P a r tn e r Java T rip B o o k in g 123 456 F lig h t 789 W id g e t Java P a r tn e r Java Java C ar P a r tn e r Java fu lla p p - c u r r e n c y ( 8 0 8 3 ) C u rre n c y C o n v e r te r E JB 7
  • 8. SCA Tours - Travel Booking (Page #2) fu lla p p - s h o p p in g c a r t ( 8 0 8 7 ) p a ym e n t (8 0 8 1 ) c re d ic a rd (8 0 8 2 ) C r e d itC a r d S h o p p in g C a rt P a y m e n tP r o c e s s Java S p rin g Java p a y m e n tw e b C r e d itC a r d U I C a r tS to r e E m a ilG a te w a y > ls - ls a Java S c rip t S e rv le t 8
  • 9. SCA Tours Online Travel Sample Scenario DEMO http://svn.apache.org/repos/asf/tuscany/sandbox/travelsample 9
  • 10. Web 2.0 Client Application SCA Tours Travel Catalog Implementation.java Implementation.java implementation.widget Embedded Tomcat Trip Booking Implementation.java Shopping Cart Implementation.java 10
  • 11. SCA Composite for Tuscany Widget <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" targetNamespace="http://scatours" xmlns:scatours="http://scatours" xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0" xmlns:pp="http://www.example.org/PaymentProcess" name="ui"> <component name="scatours"> <tuscany:implementation.widget location="scatours.html"/> <service name="Widget"> <tuscany:binding.http uri="/scatours"/> </service> <reference name="scaToursCatalog" target="SCAToursComponent/SCAToursSearch"> <tuscany:binding.jsonrpc/> </reference> <reference name="scaToursBooking" target="SCAToursComponent/SCAToursBooking"> <tuscany:binding.jsonrpc/> </reference> <reference name="scaToursCart" target="SCAToursComponent/SCAToursCart"> <tuscany:binding.jsonrpc/> </reference> </component> </composite> 11
  • 12. Mobile Client Application with Android SCA Tours Travel Catalog Implementation.java Implementation.java Trip Booking Implementation.java Shopping Cart Implementation.java 12
  • 13. Credit Card Payment Scenario creditcard.jsp RFC 119: Distributed OSGi implementation.web Tomcat binding.rmi Credit Card Currency binding.ws Payment Converter implementation.osgi implementation.osgi Web Service Client Equinox Equinox 13
  • 14. SCA composite for the Web component <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903" targetNamespace="http://creditcard" name="CreditCardPaymentWeb"> <component name="CreditCardPaymentWeb"> <implementation.web web-uri="" /> <reference name="service"> <interface.java interface="scatours.payment.creditcard.CreditCardPayment"/> <binding.ws uri="http://localhost:8082/CreditCardPayment" /> </reference> </component> </composite> > JSP <%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca"%> <sca:reference name="service" type="scatours.payment.creditcard.CreditCardPayment" /> 14
  • 15. Distributed OSGi with Tuscany/SCA Local Service OSGi Service Local OSGi Service SCA Service Registry Implementation CreditCard Payment Web Service Currency Converter RMI SCA References SCA proxies 15
  • 16. OSGi services in the SCA domain CreditCard Currency Payment Converter Credit Card Payment Currency Converter Bundle Bundle Node #1 Node #2 SCA Domain binding.rmi Credit Card Currency binding.ws Payment Converter implementation.osgi implementation.osgi 16
  • 17. SCA composite for the OSGi bundle <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903" xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://creditcard" name="CreditCardPaymentComposite"> <component name="CreditCardPaymentComponent"> <tuscany:implementation.osgi bundleSymbolicName="scatours.creditcard.payment" bundleVersion="1.0.0" /> <service name="CreditCardPayment"> <binding.ws uri="http://localhost:8082/CreditCardPayment"/> </service> <reference name="currencyConverter"> <tuscany:binding.rmi uri="rmi://localhost:8085/CurrencyConverter"/> </reference> </component> </composite> 17
  • 18. Raymond Feng (rfeng@apche.org) Luciano Resende (lresende@apache.org) http://tuscany.apache.org 18