What's New in Sun (tm) CAPS 6 for CAPS 5 Users

Student Guide

CAPS-0600 Rev B

D61888GC10 Edition 1.0 2009 D62643 Copyright © 2009, Oracle and/or its affiliates. All rights reserved.

Disclaimer

This document contains proprietary information, is provided under a license agreement containing restrictions on use and disclosure, and is protected by copyright and other intellectual property laws. You may copy and print this document solely for your own use in an Oracle training course. The document may not be modified or altered in any way. Except as expressly permitted in your license agreement or allowed by law, you may not use, share, download, upload, copy, print, display, perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization of Oracle.

The information contained in this document is subject to change without notice. If you find any problems in the document, please report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not warranted to be error-free.

Sun Microsystems, Inc. Disclaimer

This training manual may include references to materials, offerings, or products that were previously offered by , Inc. Certain materials, offerings, services, or products may no longer be offered or provided.Oracle and its affiliates cannot be held responsible for any such references should they appear in the text provided.

Restricted Rights Notice If this documentation is delivered to the U.S. Government or anyone using the documentation on behalf of the U.S. Government, the following notice is applicable:

U.S. GOVERNMENT RIGHTS The U.S. Government’s rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted by the terms of the applicable Oracle license agreement and/or the applicable U.S. Government contract.

Trademark Notice

Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. 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. UNIX is a registered trademark licensed through X/Open Company, Ltd. This page intentionally left blank. This page intentionally left blank. Table of Contents

About This Course ...... Preface-5 Course Goals...... Preface-5

Course Map...... Preface-7 Topics Not Covered ...... Preface-8 How Prepared Are You?...... Preface-9 Introductions ...... Preface-10 How to Use Course Materials...... Preface-11 Conventions ...... Preface-12 Overview of Java CAPS 6 ...... 1-1 Objectives ...... 1-1 Additional Resources...... 1-2 Java CAPS ...... 1-3 Java CAPS 6 ...... 1-5 Java Business Integration...... 1-9 Business Process Management ...... 1-10 The NetBeans IDE...... 1-13 GlassFish Application Server ...... 1-15 Management and Monitoring...... 1-16 Environment Objects ...... 1-17 Sub Collaborations...... 1-19 Upgrade Path...... 1-20 Installation of Java CAPS 6 ...... 2-1 Objectives ...... 2-1 Additional Resources...... 2-2 Installing Java CAPS 6 ...... 2-3 Install Actions...... 2-5 CAPS Repository Install Actions ...... 2-6 Using the Java CAPS Uploader ...... 2-7 Updating the Enterprise Manager ...... 2-8 Updating NetBeans ...... 2-9 Adding JBI Components to GlassFish...... 2-10

1 Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision B Introduction to JBI...... 3-1 Objectives ...... 3-1 JBI Components...... 3-2 The Normalized Message ...... 3-4 JBI Administration...... 3-5 JBI and CAPS 6 ...... 3-6 The Java EE Service Engine...... 3-8 The JBI Bridge...... 3-9 Using Business Processes in CAPS 6...... 4-1 Objectives ...... 4-1 Web Services ...... 4-2 Describing a Message with XSD ...... 4-3 Web Services Description Language...... 4-5 Abstract WSDL...... 4-6 Concrete WSDL...... 4-10 Business Processes and BPEL ...... 4-12 BPEL, WSDL and XSD...... 4-13 The Partner Link in BPEL and WSDL ...... 4-14 Variables in BPEL ...... 4-16 Interacting With Partners ...... 4-17 Working With Data...... 4-19 The BPEL Module in CAPS 6...... 4-21 The XSD Editor ...... 4-23 The WSDL Editor...... 4-24 The WSDL Editor: Partner View...... 4-25 The BPEL Modeler...... 4-26 Adding a Partner Link...... 4-27 The BPEL Mapper...... 4-28 Using XPath Expressions...... 4-29 Building a BPEL Module Project ...... 4-30 The Composite Application ...... 4-31 Adding a JBI Module...... 4-32 The CASA Editor...... 4-35 Building a Composite Application ...... 4-37 Deploying a Composite Application...... 4-39

Adapters and Encoders in Java CAPS 6 ...... 5-1 Objectives ...... 5-1 Additional Resources...... 5-2 J2EE Connector Architecture ...... 5-3 Connection Pooling...... 5-4 Resource Adapter Deployment...... 5-5 Types of Adapters in Java CAPS 6...... 5-6 eWays in CAPS 6 ...... 5-7 JCA Adapters in Java CAPS 6...... 5-8 Using OTDs with JCA Adapters ...... 5-10

2 What’s New In Sun Java™ CAPS 6 for CAPS 5 Users Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision B Encoder Overview ...... 5-11 Encoders in JBI...... 5-12 Defining an Encoder ...... 5-13 Monitoring CAPS 6...... 6-1 Objectives ...... 6-1 Additional Resources...... 6-2 Management and Monitoring...... 6-3 JBI Components...... 6-4 Java Message eXtensions (JMX)...... 6-6 JConsole...... 6-7 Using the Management API...... 6-8 asadmin ...... 6-9 asant ...... 6-11 Scripting...... 6-12 NetBeans Admin Plug-ins ...... 6-13

GlassFish Admin Console ...... 6-14 Repository-Based Management...... 6-16 Application Configuration in Java CAPS 6 ...... 7-1 Objectives ...... 7-1 Definition: Environment...... 7-2 Repository-Based Configuration Model...... 7-3 Externalization in LDAP ...... 7-4 EJB 3 Configuration Model...... 7-5 JBI Configuration Model ...... 7-6 Environment Objects ...... 7-7 Editing from the Command Line ...... 7-9 Editing From the Admin Console...... 7-10

3 Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision B

4 What’s New In Sun Java™ CAPS 6 for CAPS 5 Users Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision B