Developing Weblogic SCA Applications for Oracle Weblogic Server
Total Page:16
File Type:pdf, Size:1020Kb
Oracle® Fusion Middleware Developing WebLogic SCA Applications for Oracle WebLogic Server 12c (12.2.1.4.0) E90761-01 September 2019 Oracle Fusion Middleware Developing WebLogic SCA Applications for Oracle WebLogic Server, 12c (12.2.1.4.0) E90761-01 Copyright © 2007, 2019, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency- specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government. This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle. Contents Preface Audience vi Documentation Accessibility vi Conventions vi 1 Introduction and Roadmap Document Scope and Audience 1-1 Guide to This Document 1-1 Related Documentation 1-2 2 Overview WebLogic Spring SCA Applications 2-1 WebLogic SCA Runtime 2-1 Limitations 2-2 3 Tools Support Standalone WebLogic Server 3-1 Oracle SOA Suite 3-1 Oracle JDeveloper 3-1 Oracle Enterprise Pack for Eclipse (OEPE) 3-2 4 Deploying WebLogic SCA Runtime to WebLogic Server Deploying a Library Using the WebLogic Server Administration Console 4-1 5 WebLogic Spring SCA Application Overview iii 6 Configuring the Spring Application Context Specifying References and Services 6-1 sca:reference Element 6-1 sca:service Element 6-1 Binding Subelements 6-2 Sample Spring Application Context 6-2 7 Configuring EJB Session Bean Bindings binding.ejb Element Attributes 7-1 Binding to Services 7-2 Binding to References 7-2 EJB2 Programming Model 7-3 EJB3 Programming Model 7-3 8 Configuring Web Service Bindings binding.ws Element Attributes 8-2 binding.ws Subelements 8-3 PolicyReference Element 8-3 property Element 8-4 Configuring Security 8-4 Security Configuration Examples 8-4 Security Configuration for SCA Service and SCA Reference Using OWSM Policy 8-5 Configuring Databinding 8-6 Configuring TopLink/EclipseLink JAXB Binding 8-6 Configuring TopLink/EclipseLink SDO Databinding 8-6 Configuring Glassfish JAXB Databinding 8-7 About Configuring Custom Databinding 8-7 Configuring Custom Databinding 8-7 Custom Databinding Examples 8-8 Configuring Databinding for SOAP Attachments 8-9 Configuring Attachments Using MTOM 8-10 Configuring Attachments Using SwA 8-12 Configuring Collection and Map Objects 8-14 Externalizing Generic Type for Map 8-15 Precedence of Configuration Settings 8-17 Deployment 8-17 Runtime 8-17 iv 9 Deploying WebLogic Spring SCA Applications Preparing Deployment Units 9-1 Configuring the Deployment Descriptor 9-2 Bundling Libraries 9-2 Deploying in a Cluster 9-3 Deploying WebLogic Spring SCA Applications Using Other Tools 9-3 Runtime 9-3 10 Viewing WebLogic SCA Application Configurations Prerequisites for Viewing Application Configurations 10-1 Enabling the WebLogic Server Administration Console Extension 10-1 Viewing Details about Configured Services and References 10-2 A WebLogic SCA Schemas WebLogic Spring SCA Schema (weblogic-sca.xsd) A-1 WebLogic SCA Binding Schema (weblogic-sca-binding.xsd) A-1 Web Service Policy Schema (ws-policy.xsd) A-1 WebLogic SCA Databindings Customization Descriptor Schema (weblogic-wsee- databinding.xsd) A-2 v Preface Preface This preface describes the document accessibility features and conventions used in this guide—Developing WebLogic SCA Applications for Oracle WebLogic Server. Audience This document is intended for administrators who configure WebLogic Server to host applications and for application developers who develop WebLogic Spring SCA applications. Documentation Accessibility For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup? ctx=acc&id=docacc. Accessible Access to Oracle Support Oracle customers who have purchased support have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/ lookup?ctx=acc&id=info or visit http://www.oracle.com/pls/topic/lookup? ctx=acc&id=trs if you are hearing impaired. Conventions The following text conventions are used in this document: Convention Meaning boldface Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary. italic Italic type indicates book titles, emphasis, or placeholder variables for which you supply particular values. monospace Monospace type indicates commands within a paragraph, URLs, code in examples, text that appears on the screen, or text that you enter. vi 1 Introduction and Roadmap WebLogic SCA provides support for creating and deploying WebLogic SCA applications. This book describes how to work with WebLogic SCA in Oracle WebLogic Server. Document Scope and Audience The following topics describe the contents and organization of this guide—Developing WebLogic SCA Applications for Oracle WebLogic Server: • Document Scope and Audience • Guide to This Document • Related Documentation Guide to This Document • This chapter, Introduction and Roadmap describes the organization of this guide. • Overview provides a brief overview of Oracle SCA. • Tools Support describes the tools available for working with WebLogic SCA in Oracle WebLogic Server, Oracle SOA Suite, Oracle Enterprise Pack for Eclipse (OEPE), and Oracle JDeveloper. • Deploying WebLogic SCA Runtime to WebLogic Server describes how to deploy WebLogic SCA Runtime to WebLogic Server as a shared application library. • WebLogic Spring SCA Application Overview provides an overview of what is required to create and deploy a WebLogic Spring SCA application. • Configuring the Spring Application Context tells how to configure the Spring application context to take advantage of WebLogic SCA features. • Configuring EJB Session Bean Bindings tells how to configure EJB Session Bean bindings to expose services and references in WebLogic Spring SCA applications. • Configuring Web Service Bindings tells how to configure Web Service bindings to expose services and references in WebLogic Spring SCA applications. • Deploying WebLogic Spring SCA Applications describes how to deploy WebLogic Spring SCA applications to Oracle WebLogic Server. • Viewing WebLogic SCA Application Configurations tells how to enable the WebLogic SCA console extension to view the services and references configured for a WebLogic Spring SCA application. • WebLogic SCA Schemas shows the schemas used for WebLogic Spring SCA applications. 1-1 Chapter 1 Related Documentation Related Documentation See the following documentation for related information: