![]() |
Sun ONE Connector Builder 2.0 Developer's Guide |
817-0540-10 |
Updated: October 14, 2002 |
ContentsOverview of the Sun ONE Connector Builder
Application Integration
Introduction
Key Features
Key Features of the Generated Resource Adapters
Basic Concepts
Common Client Interface (CCI)
Development Process
Service Provider Interface (SPI)
EIS API
Resource Adapter
Java Interaction Object (JIO)
SOAP Services
Runtime Deployment Scenarios
Deployment in Managed Environment
Deployment in Non-managed Environment
Deployment in Managed Environment with SOAP over HTTP/S
Deployment in Non-managed Environment with SOAP over HTTP/S
General Approach for Building Resource Adapters
Classifying EIS APIs
Classifying by Implementation Language
Working With Different Types of EIS APIs
Classifying by Connection Style
Connection-oriented EIS APIs
Classifying by Method Input and Output Data Style
Connection-less EIS APIs
Classifying by API Abstraction Level
Specific EIS APIs - Application Vocabulary
General-purpose EIS APIs - Software Vocabulary
The Model EIS API
Summarizing EIS API Classification
Considering Implementation Language
Considering Method Input and Output Data Styles
Data via Parameters and Return Values Only
Considering Connection Style
Data via Object State
Data via Environment
Background
Considering EIS API Abstraction Level
Connection-less
Connection-as-parameter
Connection-as-target
Specific EIS APIs
General-purpose EIS APIs
Mounting the EIS API
Defining the Resource Adapter
Step 1 - Template Chooser
Generating the Resource Adapter
From the IDE main menu
Step 2 - Specifying Adapter Location Information
From the IDE Explorer Area
Step 3 - Entering Adapter General Information
Step 4 - Mapping the EIS API
Identifying Connection Objects
Step 5 - Customizing Interaction Specs
Change the Name of the InteractionSpec and Records
Step 6 - Specifying Configuration Properties
Set JIO Options
Step 7 - Choosing Authentication and Transactional Support
Step 8 - Enter Licensing Information
Step 9 - Set Adapter Icons
Internationalization Support For Generated Code
Understanding the Resource Adapter Directory Structure
How the Resource Adapter is Displayed in the IDE
Modifying the Resource Adapter Definition
How to Modify Resource Adapter Definitions
Displaying the Adapter's Contextual Menu
Security
Choosing the Action
Edit EIS API Data
Edit InteractionSpec
Edit Template InteractionSpec
Edit Configuration Properties
Configure SOAP Services
View Deployment Descriptor
Generate
Import Files
Build
Build All
Package
Delete
Save
Help
Properties
Basic Properties Tab
Saving the Modifications
Deployment Properties Tab
Modifying the Large and Small Icon
Changing Transaction Support
Regenerating an Adapter
Customizing the Generated Resource Adapter
Overview of Customizations
Customizable Elements of Generated Resource Adapters
Categorizing Generated Classes by Class Hierarchy
General Approach to Customizing Sun ONE Connector Builder Resource Adapters
Level 1 Classes
Categorizing Generated Classes by Functional Responsibility
Level 2 Classes
Level 3 Classes
Classes for Invoking the EIS API
Naming Conventions for Generated Classes
Classes for Managing Connections, Transactions, and Security
Java Interaction Object (JIO) Classes
Generated Properties Files
Customizing the Properties Files
Customizing the Resource Adapter
<adapterLogicalName>log.properties
General Approach to Customizing Java Classes
<adapterLogicalName>RAMD.properties
<adapterLogicalName>.properties
Preserving Customizations
Customization Points and Categories of Customization
Mandatory Customization Points
Customizing the Resource Adapter's JIOs
Mandatory Customizations Related to EIS API Method Invocation
Basic Customization Points
Mandatory Customizations Related to Connections, Transactions, and Security
Methods for Cleaning Up and Destroying a Physical Connection
Basic Customizations Related to EIS API Method Invocation
Basic Customizations Related to Connections, Transactions, and Security
JIO Class Naming Scheme
The Execute and ExecuteAPI Methods
Generated JIO - Code Sample
JIO Generation Options
Expose Function Name
Advanced Customizations (optional)
Start Local Transaction
Provide Connection Spec Properties for getConnection Call
Embedding Extra Log Messages in JIO
Restricting Usage of the Connector at Runtime
Preserving Customizations to the JIOs
Adding SOAP Services to the Resource Adapter
Basic Concepts
What is SOAP?
Generating SOAP Services for Connector Builder Resource Adapters
How Does SOAP Work?
SOAP Processing
Customizing the SOAP Layer
Editing the Serializer
Editing the Participating Classes
Editing a Serializer
Editing a Participating Class
SOAP Service Generation Naming Scheme
Generated SOAP Framework - Code Samples
Template Serializer/Deserializer
Mandatory Customizations
Service Deployment Descriptor
HTTP Client
Implementing the Serializers
Advanced Customizations (Optional)
HTTP Client Modifications
Service URN Modifications
Preserving Customizations
Using HTTPS with SOAP Clients
Propagating Adapter Internal Exceptions to SOAP Clients
Building/Packaging the Generated Resource Adapter
Overview
The Generated ANT Build XML File
Preparing to Build/Package the Generated Resource Adapter
How to Build/Package the Generated Resource Adapter from within the IDE
How to Build/Package the Generated Resource Adapter from Outside the IDE
Verifying ANT Execution Output
Deploying the Resource Adapter
Deployment Scenarios
Deployment in Managed Environment
Deploying the Resource Adapters
With SOAP over HTTP/S
Deployment in Non-Managed Environment
With SOAP over HTTP/S
Deploying the Resource Adapters in Non-managed Environments
Using the Resource Adapters
Deployment Process for Non-managed Environments
Step 1 - Register Deployment Platform Instance (icsvrreg)
Examples
Step 2 - Deploy Resource Adapter (icradeploy)
Examples
Step 3 - Configure Connection Factory (icconfig)
Examples
Step 4- Deploy SOAP Services (icwsdeploy) - optional
Adding a Connection Factory
Updating an Existing Connection Factory's Parameters
Examples
Step 5- Check the Version of Sun ONE Connector Builder (icversion) - optional
Examples
Using CCI
Using JIO
Using SOAP
Testing the Generated Resource Adapter
Introduction to TestClient
Key Features of TestClient
Building Test Cases
Key Components of TestClient
Test Harness
TestClient Runtime Processing
Test Servlet Router
Developing Test Cases
Configuration Files
public void setup(Properties prop) throws Exception
Packaging and Deploying Test Cases
public void test() throws Exception
public void cleanup() throws Exception
Example of a Test Case
Test List File
Deploying the Test Servlet Router
Exclude List File
TestSetup Properties File
Testrun Parameters File
Verifying Successful Deployment of the Test Servlet Router
Running the TestClient
Examining the Test Results
Running the TestClient with Sample Adapters
Administration and Monitoring of the Generated Resource Adapter
Logging
Adapter Log Configuration File
Connection Pooling
Log Configuration Parameters
Log Level
Sample Adapter Log Configuration File
List of Handlers (logging output destinations)
StreamHandler Configurable Parameters
FileHandler Configurable Parameters
Logging APIs
ICONLogger
How to Access a Logger Instance within Generated Adapter Code
ICONLogLevel
Logging by Generated Resource Adapters
Pool Configuration Parameters
Command Line Interface Reference
icsvrreg
Description
icradeploy
Usage
Subcommands
Options
Examples
Environment Variables
Exit Status
See Also
Diagnostics
Notes
Description
icconfig
Usage
Subcommands
Options
Examples
Environment Variables
Exit Status
See Also
Diagnostics
Notes
Description
icwsdeploy
Usage
Subcommands
Options
Examples
Environment Variables
Exit Status
See Also
Diagnostics
Notes
Description
ictstclnt
Usage
Subcommands
Options
Examples
Environment Variables
Exit Status
See Also
Diagnostics
Notes
Description
icversion
Usage
Options
Examples
Environment Variables
Exit Status
Diagnostics
Notes
Description
Usage
Examples
Environment Variables
Exit Status
Diagnostics
Overview
Installing Apache SOAP 2.2 on iPlanet Web Server 6.0
Configuring iWS with JDK1.3.1
Installing Apache SOAP 2.2 on J2EE Reference Implementation (J2EE RI) 1.3.1
Add Apache SOAP Runtime and Other Jar Files to the iWS Classpath
Deploying Apache SOAP Web Application Module (soap.war)
Verifying Your Installation
HTTP Transport Support Verification
Deployment Tools Verification
Add Apache SOAP Runtime and Other Jar Files to the J2EE RI Classpath
Installing Apache SOAP 2.2 on iPlanet Application Server 6.5
Deploy Apache SOAP Web Application Module (soap.war)
Verifying Your Installation
HTTP Transport Support Verification
Deployment Tools Verification
Installing Apache SOAP 2.2 on Sun ONE Application Server 7
Working with Sun ONE Integration Server
Overview
Deploy the Adapter's SOAP Services
Define the SOAP Services in Integration Server
Sample Backbone/Proxy Definition
Datatype Mappings
Development Time
Sun ONE Application Server 7.0
Web Server
J2EE 1.3 Reference Implementation (J2EE RI)
Logging
Samples
SOAP
Bringing the Legacy C, C++ API to Java
Runtime Requirements
Multi-byte Character Limitations