* Reusing Existing Java EE Applications from Oracle SOA Suite Guido Schmutz Technology Manager, Oracle ACE Director for FM...
Abstract <ul><li>You have a lot of existing Java EE applications. Part of these applications and their logic have a potent...
Guido Schmutz <ul><li>Working for Trivadis for more than 14 years </li></ul><ul><li>Oracle ACE Director for Fusion Middlew...
Trivadis Facts & Figures <ul><li>11 Trivadis locations with more than 550 employees </li></ul><ul><li>Financially independ...
Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Serv...
SOA Suite 11g Product-Architecture SOA Suite Oracle Service Bus (OSB) BPEL Business Rule Human Workflow Mediator Spring Ad...
SOA Suite 11g Product-Architecture Unified Runtime BPMN Policy Manager Optimized binding Human Workflow (+AMX, AG, Orgn) B...
Integration Blueprint http://www.packtpub.com/article/trivadis-integration-architecture-blueprint
Principles of Service-Orientation
Contract-First Web Service Design <ul><li>Important for service-orientation is the  standardizing  and  decoupling  of the...
SOA vs. WOA <ul><li>SOAP-based  Services </li></ul><ul><li>REST Service </li></ul>
Simple Use Case <ul><li>Customer Service Interface in Java </li></ul><ul><li>Customer and Address DTO  </li></ul>
Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Serv...
Kind of Java EE architectures <ul><li>Web Applications </li></ul><ul><ul><li>Servlet, JSP, JSF, POJO </li></ul></ul><ul><u...
Web Applications <ul><li>Servlet, JSP, POJO </li></ul>XML over HTTP HTML over HTTP
Java EE Applications and Messaging <ul><li>Session Bean, Entity Bean, Message Driven Bean, POJO </li></ul>RMI/IIOP RMI/IIO...
Spring Applications and Messaging <ul><li>Spring POJO, JMS Message Listener, Remoting through Exporters </li></ul>XML over...
Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Serv...
Service Enabling Java EE Application  <ul><li>Using JAX-WS for SOAP- and JAX-RS for RESTful-WebServices </li></ul>SOAP RES...
2 Types of Web Services in Java EE 6 <ul><li>SOAP-based Web Services </li></ul><ul><ul><li>Provided by JAX-WS  </li></ul><...
JAX-WS for Web Services <ul><li>Since Java EE 5, JAX-WS (JSR 224) the  preferred technology  to write SOAP web services </...
JAX-WS for Web Services <ul><li>Web services rely on the  configuration by exception  paradigm (like most of new Java EE s...
JAX-WS for Web Services <ul><li>Code First  (bottom-up) =>  contract-last </li></ul><ul><ul><li>write the Java classes and...
JAX-WS - Code First Determines XSD Determines WSDL
JAX-WS - Code First <ul><li>WSDL and XSD generated </li></ul>
JAX-WS – Code First
JAX-WS –  WSDL First
JAX-WS – WSDL First
JAX-WS – WSDL First Transformation JAXB Annotations JAX-WS Annotations EJB Annotations
JAX-WS – WSDL First
JAX-WS - Conclusion <ul><li>Code First </li></ul><ul><li>Easy to get with just a few annotations </li></ul><ul><li>No cont...
JAX-RS for RESTful Services <ul><li>relies heavily on annotations, similar to JAX-WS to specify URI mappings, HTTP headers...
JAX-RS for RESTful Services POJO with JAXB Annotations Session Bean or POJO with JAX-RS
JAX-RS for RESTful Services
Service Enabling Spring Application <ul><li>Using Spring WS for SOAP- and Spring Web for Restful-WebServices  </li></ul>SO...
Spring-WS <ul><li>Spring-WS is a part of Spring focused on creating document-driven Web Services </li></ul><ul><li>Support...
Service Enabling Web Applications <ul><li>Using Spring WS for SOAP- and Spring Web for Restful-WebServices  </li></ul>SOAP...
Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Serv...
Service Enabling on Oracle Service Bus <ul><li>With Web Services in Java </li></ul><ul><li>Calling SOAP Web Services throu...
OSB HTTP Transport to wrap JAX-WS Code First service <ul><li>Problem </li></ul><ul><ul><li>Want to offer a contract-first ...
OSB HTTP Transport to wrap JAX-WS Code First service Proxy Service XQuery Transformation Business Service with HTTP Transp...
OSB HTTP Transport to wrap JAX-RS service <ul><li>Problem </li></ul><ul><ul><li>Want to make a  REST Web Service  availabl...
OSB EJB Transport to call EJB <ul><li>Problem </li></ul><ul><ul><li>Want to  use an EJB session bean directly  without hav...
OSB EJB Transport to call EJB <ul><li>Proxy Service </li></ul><ul><li>Business Service with EJB Transport </li></ul>
OSB HTTP Transport to call XML / HTTP functionality <ul><li>Problem </li></ul><ul><ul><li>Want to make an  XML over HTTP  ...
OSB JMS transport to send message to Queue/Topic <ul><li>Problem </li></ul><ul><ul><li>want to  send a message  in to a Qu...
OSB JMS transport to consume message from Queue/Topic <ul><li>Problem </li></ul><ul><ul><li>want to  consume a message  fr...
OSB and DB Adapter for request-driven access to information <ul><li>Problem </li></ul><ul><ul><li>Want to  directly access...
OSB and DB Adapter for event-driven notification of changes <ul><li>Problem </li></ul><ul><ul><li>Want to have an  event-d...
HTTP Transport to reuse existing HTML user interface (screen scraping) <ul><li>Problem </li></ul><ul><ul><li>Only interfac...
Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Serv...
Service Enabling on Oracle SOA Suite <ul><li>Similar integration as on OSB </li></ul><ul><ul><li>EJB Adapter </li></ul></u...
Using SOA-Direct adapter to invoke an OSB service <ul><li>Problem </li></ul><ul><ul><li>Want to  reuse an OSB services eff...
Using the SCA Spring component <ul><li>Problem </li></ul><ul><ul><li>Want to reuse  Java code based on a Java archive  (JA...
Using the SCA Spring component
Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Serv...
Summary <ul><li>Never publish a contract-last service contract directly to consumers </li></ul><ul><ul><li>Hide it by putt...
My other sessions @ Kscope11 <ul><li>Fault Handling in Oracle SOA Suite 11g , Wednesday 8:30 – 9:30 Room 203C </li></ul><u...
Reusing Existing Java EE Applications from Oracle SOA Suite Please Fill Out Your Evaluations Guido Schmutz Technology Mana...
Upcoming SlideShare
Loading in...5
×

Reusing Existing Java EE Applications from SOA Suite 11g

4,081

Published on

You have a lot of existing Java EE applications. Part of these applications and their logic have a potential to be reused in an SOA. But what is the best practice for reusing such Java EE applications? This session will show different approaches available with SOA Suite 11g in the SCA assembly model as well as with the Oracle Service Bus to reuse existing Java EE artifacts.

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
4,081
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide
  • This is your opening slide.
  • This is the final slide of the presentation.
  • Reusing Existing Java EE Applications from SOA Suite 11g

    1. 1. * Reusing Existing Java EE Applications from Oracle SOA Suite Guido Schmutz Technology Manager, Oracle ACE Director for FMW & SOA Trivadis AG, Switzerland
    2. 2. Abstract <ul><li>You have a lot of existing Java EE applications. Part of these applications and their logic have a potential to be reused in an SOA. But what is the best practice for reusing such Java EE applications? This session will show different approaches available with SOA Suite 11g in the SCA assembly model as well as with the Oracle Service Bus to reuse existing Java EE artifacts. </li></ul>
    3. 3. Guido Schmutz <ul><li>Working for Trivadis for more than 14 years </li></ul><ul><li>Oracle ACE Director for Fusion Middleware and SOA </li></ul><ul><li>Co-Author of different books </li></ul><ul><li>Consultant, Trainer Software Architect for Java, Oracle, SOA and EDA </li></ul><ul><li>Member of Trivadis Architecture Board </li></ul><ul><li>Technology Manager @ Trivadis </li></ul><ul><li>More than 20 years of software development experience </li></ul><ul><li>Contact: [email_address] </li></ul><ul><li>Blog: http://guidoschmutz.wordpress.com </li></ul><ul><li>Twitter: gschmutz </li></ul>
    4. 4. Trivadis Facts & Figures <ul><li>11 Trivadis locations with more than 550 employees </li></ul><ul><li>Financially independent and sustainably profitable </li></ul><ul><li>Key figures 2010 </li></ul><ul><ul><li>Revenue CHF 101 / EUR 73 mio. </li></ul></ul><ul><ul><li>Services for more than 700 clients in over 1‘800 projects </li></ul></ul><ul><ul><li>Over 170 Service Level Agreements </li></ul></ul><ul><ul><li>More than 5'000 training participants </li></ul></ul><ul><ul><li>Research and development budget: CHF 5.0 / EUR 3.6 mio </li></ul></ul>~350 employees ~180 employees ~20 employees
    5. 5. Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Service Enabling on the Java Layer </li></ul><ul><li>Service Enabling on the Oracle Service Bus </li></ul><ul><li>Service Enabling in Oracle SOA Suite </li></ul><ul><li>Best Practices and Summary </li></ul>
    6. 6. SOA Suite 11g Product-Architecture SOA Suite Oracle Service Bus (OSB) BPEL Business Rule Human Workflow Mediator Spring Adapter WebLogic Suite CEP BPM Suite BPMN BPA Suite BPMN EPK UML Application Integration Architecture (AIA) Foundation Pack Process Integration Pack (PIP)
    7. 7. SOA Suite 11g Product-Architecture Unified Runtime BPMN Policy Manager Optimized binding Human Workflow (+AMX, AG, Orgn) Business Rules Oracle Service Bus Common JCA-based connectivity infrastructure Repository EM console +BPMN Screens BAM B2B Mediator Workspace Process Portal (WC spaces) MS Office BPM Studio (with Business and IT views) Shared BPMN Model Business View BPA BPMN 2.0, BPEL Rich End User Interaction Web based customization Process Composer BPEL Process Analytics Proc Cubes Spring
    8. 8. Integration Blueprint http://www.packtpub.com/article/trivadis-integration-architecture-blueprint
    9. 9. Principles of Service-Orientation
    10. 10. Contract-First Web Service Design <ul><li>Important for service-orientation is the standardizing and decoupling of the technical contract of each service </li></ul><ul><li>Service-oriented design therefore should be based on a contract first approach </li></ul><ul><ul><li>avoid the use of auto-generation tools </li></ul></ul>Source: Thomas Erl, Principles of Service Design
    11. 11. SOA vs. WOA <ul><li>SOAP-based Services </li></ul><ul><li>REST Service </li></ul>
    12. 12. Simple Use Case <ul><li>Customer Service Interface in Java </li></ul><ul><li>Customer and Address DTO </li></ul>
    13. 13. Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Service Enabling on the Java Layer </li></ul><ul><li>Service Enabling on the Oracle Service Bus </li></ul><ul><li>Service Enabling in Oracle SOA Suite </li></ul><ul><li>Best Practices and Summary </li></ul>
    14. 14. Kind of Java EE architectures <ul><li>Web Applications </li></ul><ul><ul><li>Servlet, JSP, JSF, POJO </li></ul></ul><ul><ul><li>With XML over HTTP – pre RESTful </li></ul></ul><ul><li>Spring Applications with/without Messaging </li></ul><ul><ul><li>POJO, Fat-Client, Client/Server, N-Tier </li></ul></ul><ul><ul><li>Spring JMS, Spring Integration, Apache Camel </li></ul></ul><ul><li>EJB (3) Applications with/without Messaging </li></ul><ul><ul><li>Session Bean, Entity Bean </li></ul></ul><ul><ul><li>Message Driven Bean (MDB) </li></ul></ul>
    15. 15. Web Applications <ul><li>Servlet, JSP, POJO </li></ul>XML over HTTP HTML over HTTP
    16. 16. Java EE Applications and Messaging <ul><li>Session Bean, Entity Bean, Message Driven Bean, POJO </li></ul>RMI/IIOP RMI/IIOP HTML over HTTP JMS Messaging
    17. 17. Spring Applications and Messaging <ul><li>Spring POJO, JMS Message Listener, Remoting through Exporters </li></ul>XML over HTTP HTML over HTTP Spring JMS Abstraction
    18. 18. Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Service Enabling on the Java Layer </li></ul><ul><li>Service Enabling on the Oracle Service Bus </li></ul><ul><li>Service Enabling in Oracle SOA Suite </li></ul><ul><li>Best Practices and Summary </li></ul>
    19. 19. Service Enabling Java EE Application <ul><li>Using JAX-WS for SOAP- and JAX-RS for RESTful-WebServices </li></ul>SOAP REST HTML over HTTP XML over HTTP
    20. 20. 2 Types of Web Services in Java EE 6 <ul><li>SOAP-based Web Services </li></ul><ul><ul><li>Provided by JAX-WS </li></ul></ul><ul><ul><li>aka. “Big” Web Services (Java EE 6 Tutorial) </li></ul></ul><ul><li>RESTful Web Services </li></ul><ul><ul><li>Provided by JAX-RS </li></ul></ul>
    21. 21. JAX-WS for Web Services <ul><li>Since Java EE 5, JAX-WS (JSR 224) the preferred technology to write SOAP web services </li></ul><ul><li>Prior was JAX-RPC 1.0 (JSR 101) </li></ul><ul><ul><li>has been pruned in Java EE 6, meaning that it is proposed to be removed from Java EE 7. </li></ul></ul><ul><li>JAX-WS 2.2 defines a set of APIs and annotations that allow you to build and consume web services with Java </li></ul><ul><li>depends on other specifications such as Java Architecture for XML Binding (JAXB). </li></ul>
    22. 22. JAX-WS for Web Services <ul><li>Web services rely on the configuration by exception paradigm (like most of new Java EE specs) </li></ul><ul><li>Only one annotation is needed to turn a POJO into a web service </li></ul><ul><ul><li>The class must be annotated with @WebService or the XML equivalent in a deployment descriptor. </li></ul></ul><ul><li>To turn a web service into an EJB endpoint, the class has to be annotated with @Stateless </li></ul>
    23. 23. JAX-WS for Web Services <ul><li>Code First (bottom-up) => contract-last </li></ul><ul><ul><li>write the Java classes and the data POJOs representing the service (operations and data types) </li></ul></ul><ul><ul><li>Use JAX-WS to generate the WSDL and XML schema types. </li></ul></ul><ul><ul><li>often referred to as Java-to-WSDL </li></ul></ul><ul><li>WSDL First (top-down) => contract-first </li></ul><ul><ul><li>Create WSDL and XML schemas manually </li></ul></ul><ul><ul><li>Use JAX-WS tools to generate the Java interface and the data POJOs </li></ul></ul><ul><ul><li>Implement the generated Java interface through a Java class </li></ul></ul><ul><ul><li>often referred to as WSDL-to-Java </li></ul></ul>
    24. 24. JAX-WS - Code First Determines XSD Determines WSDL
    25. 25. JAX-WS - Code First <ul><li>WSDL and XSD generated </li></ul>
    26. 26. JAX-WS – Code First
    27. 27. JAX-WS – WSDL First
    28. 28. JAX-WS – WSDL First
    29. 29. JAX-WS – WSDL First Transformation JAXB Annotations JAX-WS Annotations EJB Annotations
    30. 30. JAX-WS – WSDL First
    31. 31. JAX-WS - Conclusion <ul><li>Code First </li></ul><ul><li>Easy to get with just a few annotations </li></ul><ul><li>No control / minimal control over WSDL / XSD </li></ul><ul><li>No Contract-First design </li></ul><ul><li>Difficult to govern </li></ul><ul><li>Do not let your consumers access it directly </li></ul><ul><ul><li>Apply Legacy Wrapper pattern (i.e. on OSB) </li></ul></ul><ul><li>WSDL First </li></ul><ul><li>Full control over WSDL / XSD </li></ul><ul><li>More work </li></ul><ul><li>Additional transformation layer needed, might already have </li></ul><ul><ul><li>DB-to-Entity (JPA) </li></ul></ul><ul><ul><li>Entity-to-DTO (Java) </li></ul></ul>
    32. 32. JAX-RS for RESTful Services <ul><li>relies heavily on annotations, similar to JAX-WS to specify URI mappings, HTTP headers, content-types and resources </li></ul><ul><li>POJO-based </li></ul><ul><li>HTTP-centric </li></ul><ul><li>Format Independence </li></ul><ul><li>Container Independence </li></ul>
    33. 33. JAX-RS for RESTful Services POJO with JAXB Annotations Session Bean or POJO with JAX-RS
    34. 34. JAX-RS for RESTful Services
    35. 35. Service Enabling Spring Application <ul><li>Using Spring WS for SOAP- and Spring Web for Restful-WebServices </li></ul>SOAP REST XML over HTTP HTML over HTTP SOAP
    36. 36. Spring-WS <ul><li>Spring-WS is a part of Spring focused on creating document-driven Web Services </li></ul><ul><li>Supports only contract-first SOAP service development </li></ul><ul><li>Based on Spring itself and its concepts, like dependency injection </li></ul><ul><li>Key features </li></ul><ul><ul><li>Powerful mappings </li></ul></ul><ul><ul><li>XML API support (DOM, SAX, StAX, JDOM) </li></ul></ul><ul><ul><li>Flexible XML Marshalling (JAXB 1 and 2, Castor, XMLBeans, XStream) </li></ul></ul><ul><ul><li>Supports WS-Security (integrates with Spring Security) </li></ul></ul><ul><ul><li>Build by Maven </li></ul></ul>
    37. 37. Service Enabling Web Applications <ul><li>Using Spring WS for SOAP- and Spring Web for Restful-WebServices </li></ul>SOAP REST HTML over HTTP XML over HTTP SOAP
    38. 38. Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Service Enabling on the Java Layer </li></ul><ul><li>Service Enabling on the Oracle Service Bus </li></ul><ul><li>Service Enabling in Oracle SOA Suite </li></ul><ul><li>Best Practices and Summary </li></ul>
    39. 39. Service Enabling on Oracle Service Bus <ul><li>With Web Services in Java </li></ul><ul><li>Calling SOAP Web Services through HTTP transport </li></ul><ul><li>Calling Restful WebServices through HTTP Transport </li></ul><ul><li>Without Web Services in Java </li></ul><ul><li>EJB Transport </li></ul><ul><ul><li>In same transaction </li></ul></ul><ul><li>Using HTTP Transport to talk to XML over HTTP </li></ul><ul><li>Using JMS transport to send message to MDB </li></ul><ul><ul><li>With WS interface </li></ul></ul><ul><li>Integrate directly with the underlying database </li></ul><ul><li>Custom Transport/JCA </li></ul><ul><li>Screen scraping, i.e. reuse existing HTML </li></ul>
    40. 40. OSB HTTP Transport to wrap JAX-WS Code First service <ul><li>Problem </li></ul><ul><ul><li>Want to offer a contract-first SOAP-based Web Service to consumers and not the JAX-WS service </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>Use OSB HTTP Transport to wrap the JAX-WS Code-First service </li></ul></ul><ul><ul><li>Provide it as a contract-first SOAP web service on OSB </li></ul></ul>SOAP Webservice Transform from/to canonical model
    41. 41. OSB HTTP Transport to wrap JAX-WS Code First service Proxy Service XQuery Transformation Business Service with HTTP Transport Transformation
    42. 42. OSB HTTP Transport to wrap JAX-RS service <ul><li>Problem </li></ul><ul><ul><li>Want to make a REST Web Service available on the OSB as a contract-first SOAP-based Web Service </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>Use the OSB HTTP Transport to invoke REST Web Service </li></ul></ul><ul><ul><li>Provide it as a contract-first SOAP web service on OSB </li></ul></ul>REST Webservice
    43. 43. OSB EJB Transport to call EJB <ul><li>Problem </li></ul><ul><ul><li>Want to use an EJB session bean directly without having to service enable it first </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>Use OSB EJB Transport to access the existing EJB session bean </li></ul></ul><ul><ul><li>Provide it as a contract-first SOAP web service on OSB </li></ul></ul>RMI / IIOP Transaction propagation
    44. 44. OSB EJB Transport to call EJB <ul><li>Proxy Service </li></ul><ul><li>Business Service with EJB Transport </li></ul>
    45. 45. OSB HTTP Transport to call XML / HTTP functionality <ul><li>Problem </li></ul><ul><ul><li>Want to make an XML over HTTP functionality available as a contract-first style Web Service </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>Use OSB HTTP Transport to call the XML over HTTP “service” </li></ul></ul><ul><ul><li>transform the information to/from the service contract </li></ul></ul><ul><ul><li>Provide it as a contract-first SOAP web service on OSB </li></ul></ul>XML over HTTP
    46. 46. OSB JMS transport to send message to Queue/Topic <ul><li>Problem </li></ul><ul><ul><li>want to send a message in to a Queue/Topic consumed by an existing application (i.e. MDB) </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>Use the OSB JMS Transport to enqueue message </li></ul></ul><ul><ul><li>offer that operation as a service to potential consumers (i.e. SOAP-based WS) </li></ul></ul>JMS Enqueue
    47. 47. OSB JMS transport to consume message from Queue/Topic <ul><li>Problem </li></ul><ul><ul><li>want to consume a message from a Queue/Topic which is sent/published by an existing application </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>Use OSB JMS Transport to dequeue message </li></ul></ul><ul><ul><li>inform interested application(s) by calling a service (i.e. SOAP-based WS) </li></ul></ul>JMS Dequeue
    48. 48. OSB and DB Adapter for request-driven access to information <ul><li>Problem </li></ul><ul><ul><li>Want to directly access data from DB of an existing Java application </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>Use the DB Adapter on the OSB to implement CRUD DB operations </li></ul></ul><ul><ul><li>Provide it as a contract-first SOAP web service on OSB </li></ul></ul>SQL
    49. 49. OSB and DB Adapter for event-driven notification of changes <ul><li>Problem </li></ul><ul><ul><li>Want to have an event-driven push of a message , when something changes in an existing system and inform interested systems </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>Use the DB Adapter to poll a DB table for changes </li></ul></ul><ul><ul><li>use OSB to send notification messages to interested parties (subscribers) </li></ul></ul>SQL polling
    50. 50. HTTP Transport to reuse existing HTML user interface (screen scraping) <ul><li>Problem </li></ul><ul><ul><li>Only interface available is a Web application with an HTML user interface . Want to reuse that and make it available as a Web Service? </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>Use OSB HTTP Transport to invoke the HTML interface </li></ul></ul><ul><ul><li>extract the data out of the presentation logic (HTML) </li></ul></ul><ul><ul><li>Provide it as a contract-first SOAP web service on OSB </li></ul></ul>HTML over HTTP
    51. 51. Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Service Enabling on the Java Layer </li></ul><ul><li>Service Enabling on the Oracle Service Bus </li></ul><ul><li>Service Enabling in Oracle SOA Suite </li></ul><ul><li>Best Practices and Summary </li></ul>
    52. 52. Service Enabling on Oracle SOA Suite <ul><li>Similar integration as on OSB </li></ul><ul><ul><li>EJB Adapter </li></ul></ul><ul><ul><li>Web Service Adapter to invoke an existing Web Service </li></ul></ul><ul><ul><li>Socket Adapter </li></ul></ul><ul><ul><li>JMS adapter to send message to MDB </li></ul></ul><ul><li>SCA specific integration of </li></ul><ul><ul><li>Java using Spring component (if available as library) </li></ul></ul><ul><ul><li>Java Callout in Mediator </li></ul></ul><ul><ul><li>SDO Service </li></ul></ul><ul><ul><li>Reuse OSB service through SOA-Direct transport </li></ul></ul>
    53. 53. Using SOA-Direct adapter to invoke an OSB service <ul><li>Problem </li></ul><ul><ul><li>Want to reuse an OSB services efficiently from a SOA Suite component </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>use SOA Direct adapter call OSB service </li></ul></ul><ul><ul><li>Use it from any other component within the SCA composite </li></ul></ul>SOA Direct
    54. 54. Using the SCA Spring component <ul><li>Problem </li></ul><ul><ul><li>Want to reuse Java code based on a Java archive (JAR) </li></ul></ul><ul><li>Solution </li></ul><ul><ul><li>Use the SCA Spring Component within an SCA composite to invoke a Spring application from any other SCA component </li></ul></ul><ul><ul><li>Use it from any other component within the SCA composite </li></ul></ul>
    55. 55. Using the SCA Spring component
    56. 56. Agenda <ul><li>Introduction </li></ul><ul><li>What kind of Java EE architectures can we find today? </li></ul><ul><li>Service Enabling on the Java Layer </li></ul><ul><li>Service Enabling on the Oracle Service Bus </li></ul><ul><li>Service Enabling in Oracle SOA Suite </li></ul><ul><li>Best Practices and Summary </li></ul>
    57. 57. Summary <ul><li>Never publish a contract-last service contract directly to consumers </li></ul><ul><ul><li>Hide it by putting an OSB or Mediator service in between </li></ul></ul><ul><ul><li>Use a contract-first approach on the interface of the OSB / Mediator service </li></ul></ul><ul><li>OSB provides an easy intermediary layer for service-enabling existing Java EE EJB applications </li></ul><ul><ul><li>With additional benefit of advanced mediator features like Throttling, Service Pooling, Transformation, Validation, Enrichment, Split/Join </li></ul></ul><ul><li>Use the OSB EJB transport to integrate EJB </li></ul><ul><ul><li>Transaction can be propagated to the EJB layer </li></ul></ul>
    58. 58. My other sessions @ Kscope11 <ul><li>Fault Handling in Oracle SOA Suite 11g , Wednesday 8:30 – 9:30 Room 203C </li></ul><ul><li>Best Practices for Designing and Building the Services of a SOA , Wednesday 9:45 – 10:45 Room 203C </li></ul>
    59. 59. Reusing Existing Java EE Applications from Oracle SOA Suite Please Fill Out Your Evaluations Guido Schmutz Technology Manager, Oracle ACE Director for FMW & SOA Trivadis AG, Switzerland Feedback-URL: http://ezsession.com/kscope

    ×