Tutorial Downloads .com

Home

Oracle Containers for J2EE Services Guide

This Java tutorial covers the details of Oracle Containers for J2EE Services Guide.Oracle Application Server includes a J2EE environment known as Oracle Containers for J2EE (OC4J). This book describes the services provided by OC4J.

Contents
Preface........................ xvii
Intended Audience.................. xvii
Documentation Accessibility .................. xvii
Related Documents ................ xviii
Conventions .............................. xx
1 Introduction to OC4J Services
Java Naming and Directory Interface (JNDI) ................. 1-1
Java Message Service (JMS) ............... 1-1
Data Sources .......................... 1-2
OC4J Transaction Support .................... 1-2
Using Remote Method Invocation in OC4J ...................... 1-2
Java Object Cache ................ 1-2
XML Query Service .............. 1-3
Using the Application Client Container.............. 1-3
Third-Party Licenses ............... 1-3
2 Using JNDI
JNDI Primer.............................. 2-3
Creating and Using the Initial Context ............... 2-3
Constructing a JNDI Context ...................... 2-4
Enabling Global JNDI Lookups ................ 2-4
Environment and Constructors ................ 2-5
Example: Looking Up An EJB .................. 2-7
JNDI Contexts and Threads.............. 2-7
Browsing the JNDI Context.................... 2-8
Looking Up Objects from J2EE Application Components .............. 2-8
Looking Up Objects In the Same Application ......................... 2-8
Example: Servlet Looking Up a Data Source ....................... 2-9
Looking Up Objects in Another Application ....................... 2-10
RMIInitialContextFactory .................... 2-10
Example: Servlet Looking Up an EJB Remotely Using RMI ...................... 2-10
Example: Servlet Looking Up an EJB Remotely in a Multiple Instance Environment .....
2-10
IIOPInitial ContextFactory ................. 2-11
Example: Servlet Looking Up an EJB Remotely Using IIOP ...................... 2-11
Looking Up Objects from J2EE Application Clients ................ 2-12
Environment Properties ................. 2-12
Load Balancing ............... 2-13
Example: Application Client Looking Up an EJB ...................... 2-14
Example: Application Client Looking Up an EJB Using IIOP ................. 2-16
JNDI State Replication ....................... 2-17
What Is JNDI State Replication .................... 2-17
Enabling JNDI State Replication .................. 2-17
Limitations of JNDI State Replication ........................ 2-18
Propagating Changes Across the Cluster............................. 2-18
Binding a Remote Object......................... 2-19
3 OC4J Transaction Support
Introduction to OC4J Transaction Support ....................... 3-2
Programming Models - Container-Managed and Bean-Managed Transactions ......................... 3-6
Demarcating Transactions .............. 3-7
Demarcating Container-Managed Transactions ........................... 3-8
Demarcating Bean-Managed Transactions .................... 3-9
Configuring a Transaction Coordinator .......................... 3-10
Defining the Transaction Coordinator......................... 3-10
Setting Coordinator Attributes...................... 3-11
General Attributes.................... 3-11
File Store Log Attributes ......................... 3-12
Database Store Attributes ....................... 3-12
Configuring Supporting Resources.............. 3-13
Server ........................ 3-13
Data Source ............... 3-13
Resource Adapter..................... 3-14
In-Database Transaction Coordinator Considerations .............. 3-14
Managing the OC4J Transaction Manager ...................... 3-17
Manual Commit and Rollback Operations ................ 3-17
Monitoring the OC4J Transaction Manager .............. 3-17
OC4J Transaction Support Statistics ..................... 3-17
Subscribing to Event Notifications........................ 3-22
Managing OC4J Transaction Manager Recovery ....................... 3-23
Recovery Management............................ 3-23
Logs........................... 3-24
Transaction Propagation between OC4J Processes over ORMI ................. 3-25
Configuring Transaction Propagation ........................ 3-26
Transaction Propagation Constraints ......................... 3-28
Backwards Compatibility ...................... 3-28
EJB Failover ............................. 3-28
Debugging and Troubleshooting ...................... 3-28
4 Using Oracle Enterprise Messaging Service
About JMS ............................... 4-3
JMS How-To Documents and Demo Sets ...................... 4-4
JMS Configuration Overview ........................... 4-4
JMS Configuration Sequence............................ 4-4
Developing and Assembling the Application ........................ 4-5
Configuring the Resource Provider ......................... 4-5
Configuring the JMS Connector .............. 4-6
Additional Information and Examples.................... 4-6
JMS Configuration File Structure .................... 4-6
Bypassing the JMS Connector for Application Clients.............. 4-13
Resource Providers ............................. 4-15
Declaring Resource Provider References .................. 4-15
OEMS JMS In-Memory and File-Based Persistence ................... 4-17
Configuring Destination Objects and Connection Factories ............................. 4-18
Default Destination Objects and Connection Factories............... 4-18
Configuring in the Application Server Control Console ................... 4-19
Configuration Elements ......................... 4-19
Configuration Using jms.xml .............. 4-23
Configuring Ports .................... 4-25
Sending and Receiving JMS Messages.................. 4-25
Using the JMS Utility............... 4-27
Using JMS MBeans .................. 4-30
Configuring File-Based Persistence....................... 4-32
Enabling File-Based Persistence in the Application Server Control Console ......... 4-33
Enabling File-Based Persistence in the jms.xml File .................... 4-34
Persistence Recovery ........................ 4-34
Abnormal Termination ........................... 4-36
Recovery Steps .................. 4-36
Predefined Exception Queue ................ 4-37
Message Expiration .......................... 4-38
Message Paging ................. 4-38
JMS Configuration Properties ................ 4-39
Resource Naming for OEMS JMS In-Memory and File-Based.......................... 4-42
Required Class Path for Application Clients Using Direct OEMS JMS In-Memory and
File-Based Lookup 4-42
OEMS JMS Database Persistence .................. 4-42
Using the OEMS JMS Database Option............... 4-43
Install and Configure OEMS JMS Database .............. 4-43
Create User and Assign Privileges ................ 4-43
Creating OEMS JMS Database Destination Objects..................... 4-44
Declaring the OEMS JMS Database Reference ............................. 4-45
Resource Naming for OEMS JMS Database.................. 4-46
Sending and Receiving Messages Using OEMS JMS Database Persistence ........... 4-47
Required Class Path for Application Clients Using Direct OEMS JMS Database Lookup
4-48
Using OEMS JMS Database with the Oracle Application Server and the Oracle Database ....
4-48
Error When Copying aqapi.jar........................ 4-48
Preserving Ordering When Using Message Selectors................. 4-49
Using Third-Party JMS Providers................. 4-49
Declaring an IBM WebSphere MQ Resource Provider Reference ................... 4-49
Declaring a TIBCO Enterprise Message Service Resource Provider Reference ............. 4-50
Declaring a SonicMQ Resource Provider Reference ......................... 4-51
JMS Connector ............... 4-52
Modifying the JMS Connector ...................... 4-53
Configuring the JMS Connector.................... 4-54
Connection Factories and Destinations ................ 4-54
JMS Connector Settings ......................... 4-55
Configuring the JMS Connector in the XML Files ............................. 4-58
Using Message-Driven Beans ................... 4-58
Fine Tuning MDB Endpoints ................. 4-59
Using Logical Names to Reference Resources ............................ 4-65
How to Declare Logical Names ............................. 4-65
Mapping Logical Names to Explicit JNDI Locations.......................... 4-67
JNDI Naming Property Setup for Java Application Clients.............. 4-67
Client Sends JMS Message Using Logical Names............... 4-68
Required Class Path for Application Clients Using JMS Connector Lookup ....................... 4-68
Using High Availability and Clustering for OEMS JMS .............. 4-69
Configuring OEMS JMS In-Memory and File-Based High Availability ................ 4-70
Terminology............................. 4-70
Distributed Destinations ......................... 4-71
Cold Failover Cluster .............. 4-73
Dedicated JMS Server.............. 4-73
Modifying the OPMN Configuration ............................ 4-74
Configuring OEMS JMS .................. 4-75
Deploying JMS Connector............... 4-76
Deploying Applications................... 4-76
High Availability .............. 4-77
Custom Topologies .................. 4-77
Mechanisms ..................... 4-77
Considerations ................ 4-79
Cases ................ 4-80
Configuring OEMS JMS Database High Availability .............. 4-81
Failover Scenarios When Using a RAC Database ............... 4-82
RAC Network Failover .................. 4-82
Transparent Application Failover (TAF)....................... 4-82
Sample Code for Connection Recovery ..................... 4-83
J2CA Configuration for Connection Recovery ................... 4-84
Clustering Best Practices ........................... 4-84
JMS Router ...................... 4-85
JMS Providers ................. 4-85
Configuration.................. 4-86
Router Jobs ............... 4-86
Global Router Parameter(s) .................... 4-87
Subscription .............. 4-87
Log Queues and Exception Queues ...................... 4-87
Configuring the JMS Router and Its Objects........................ 4-88
JMS Router Configuration in jms.xml ........................... 4-91
Managing the Router ...................... 4-93
Router Logging ........................ 4-94
JMS Router Status Information ............................ 4-94
Error Handling ......................... 4-94
Pausing and Resuming a Job.................. 4-95
Running In a Clustered OC4J Environment ........................ 4-96
Routing with Remote Destinations ....................... 4-96
Routing to Remote Destinations with OEMS JMS HTTP Tunneling......................... 4-97
Configuring the JMS HTTP Tunnel Provider ............................. 4-97
Additional HTTP-Tunnel Examples ..................... 4-99
JMS HTTP Tunneling with SSL..................... 4-99
Configuring Connection Factories................ 4-99
Connection Factory Configuration Examples.................... 4-100
Resolving Host-Name Conflicts.................. 4-101
Configuring Logging for JMS........................... 4-101
Standard JMS ................ 4-101
JMS Provider................. 4-102
JMS Connector ............... 4-102
Message Endpoint........................ 4-103
5 Data Sources
Data Source Types .................. 5-2
Managed Data Sources ..................... 5-3
Native Data Sources .......................... 5-3
Defining Data Sources ............................ 5-3
Defining a Connection Pool ............................. 5-4
Defining a Managed Data Source .................... 5-5
Defining a Native Data Source......................... 5-6
Defining Fatal Error Codes .............. 5-6
Using Password Indirection ............................. 5-7
Removing the Example Data Source............... 5-8
Connections.............................. 5-8
Establishing a Connection ................ 5-8
Using Connection Pools for Managed Data Sources .................... 5-9
Using Connection Proxies with Managed Data Sources.............. 5-9
Getting a Connection From a DataSource ................... 5-10
Retry.......................... 5-11
Proxy-Authentication with Oracle JDBC Native Data Sources................ 5-11
Statements.............................. 5-13
Statement Caching with Managed Data Sources ....................... 5-13
Setting the JDBC Statement Cache Size in Data Sources.................... 5-14
Statement Proxies with Managed Data Sources ........................ 5-14
Transactions ........................... 5-15
Local Transactions.......................... 5-15
Local Transaction Management ............................ 5-16
Global Transactions (XA) .............. 5-17
XA Recovery ............................. 5-17
Emulating XA ........................... 5-18
Configuring Data Source Objects ..................... 5-19
Managed Data Sources .................. 5-19
Native Data Source ......................... 5-21
Connection Pools and Connection Factories .............. 5-22
Connection Factories ............... 5-23
Connection Factory Properties ....................... 5-23
Connection Factory Proxy Interface............... 5-23
Connection Properties ............................ 5-24
Connection Pools ..................... 5-24
Disabling ICC .................... 5-30
Configuration Examples ...................... 5-30
Syntax of the data-sources.xml File .............. 5-31
Examples: Configuring Data Sources .......................... 5-32
Example: Native Data Source................. 5-33
Example: Managed Data Source Using an XADataSource Connection Factory ............ 5-33
Example: Managed Data Source Using a DataSource Connection Factory .................... 5-33
Example: Managed Data Source Using a Driver Connection Factory ............................. 5-34
Example: Defining Proxy Interfaces...................... 5-34
Example: Defining XA Recovery ........................... 5-34
Example: Connection Properties ........................... 5-35
Examples: Configuring Transaction Level ................. 5-35
Examples: Configuring Fast Connection Failover ..................... 5-36
Using High Availability and Fast Connection Failover ................ 5-36
Using JDBC Drivers............................. 5-38
Oracle JDBC Drivers ....................... 5-38
OCI ............................ 5-38
Thin ........................... 5-39
Notes on Oracle JDBC-OCI driver upgrade in the Oracle Application Server .............. 5-39
JDBC Drivers for non-Oracle Databases...................... 5-39
Using DataDirect JDBC Drivers ......................... 5-40
Example DataDirect Data Source Entries ......................... 5-40
Additional Data Source Configuration Examples .............. 5-43
Legacy Configuration .......................... 5-45
Converting Existing Data Sources ................ 5-45
6 Using Remote Method Invocation
What Is RMI?............................ 6-1
Choosing RMI/ORMI or RMI/IIOP .............. 6-2
Using Oracle Remote Method Invocation (RMI/ORMI) ........................... 6-2
Introducing RMI/ORMI .............. 6-2
Features of ORMI........................ 6-2
Increased RMI Message Throughput .............. 6-2
Enhanced Threading Support ........................... 6-3
Co-Located Object Support .............. 6-3
Compatibility Patches for 9.0.4.x and 10.1.2.x ................. 6-3
Configuring RMI in a Standalone OC4J Installation ................. 6-4
Access Restrictions..................... 6-5
Client-Side Requirements to Use RMI/ORMI ........................... 6-5
Configuring RMI in an Oracle Application Server Environment ........................... 6-7
Remote Object Lookup Using RMI/ORMI ....................... 6-8
Setting JNDI Properties for RMI ................ 6-8
Setting the Java Naming Provider URL................... 6-8
Specifying the opmn Request Port in Oracle Application Server................. 6-9
Specifying the RMI Port in Oracle Application Server 10g Release 2 (10.1.2) And
Earlier 6-10
Specifying the Context Factory .......................... 6-10
Configuring ORMI Request Load Balancing .............. 6-11
Example Lookups Using ORMI .................... 6-12
Standalone OC4J ...................... 6-12
OC4J in Oracle Application Server........................ 6-12
OC4J in Previous Oracle Application Server Releases ....................... 6-13
Configuring ORMI Tunneling through HTTP .......................... 6-13
Using ORMI/SSL (ORMIS) in OC4J ........................ 6-14
Using J2EE Interoperability (RMI/IIOP) .......................... 6-14
Introduction to RMI/IIOP ....................... 6-14
Transport ................. 6-15
Naming .................... 6-15
Security ..................... 6-15
Transactions............................. 6-15
The rmic.jar Compiler ............................. 6-15
Configuring OC4J for Interoperability .................... 6-16
Interoperability OC4J Flags .............. 6-16
Interoperability Configuration Files ................. 6-16
JNDI Properties for Interoperability (jndi.properties) .................... 6-16
Context Factory Usage ................. 6-17
Client-Side Requirements to Use IIOP ...................... 6-17
Switching from ORMI to IIOP Transport ............... 6-18
Configuring an EJB for Interoperability in a Standalone OC4J Environment ................... 6-18
Configuring an EJB for Interoperability in an Oracle Application Server Environment 6-19
Specifying the corbaname URL ................. 6-20
Specifying the OPMN URL ........................... 6-21
Exception Mapping .................... 6-21
Invoking OC4J-Hosted Beans from a Non-OC4J Container .............. 6-22
7 Java Object Cache
Java Object Cache Concepts ................. 7-2
Java Object Cache Basic Architecture.............. 7-3
Distributed Object Management............... 7-3
How the Java Object Cache Works.................. 7-4
Cache Organization ........................... 7-5
Java Object Cache Features............... 7-5
Java Object Cache Object Types ........................... 7-6
Memory Objects ................ 7-6
Disk Objects........................ 7-7
StreamAccess Objects ........................ 7-7
Pool Objects........................ 7-7
Java Object Cache Environment ......................... 7-8
Cache Regions.................... 7-8
Cache Subregions ............... 7-8
Cache Groups .................... 7-8
Region and Group Size Control ....................... 7-9
Cache Object Attributes.................. 7-10
Using Attributes Defined Before Object Loading ............... 7-10
Using Attributes Defined Before or After Object Loading ................ 7-13
Developing Applications Using Java Object Cache....................... 7-15
Importing Java Object Cache......................... 7-15
Defining a Cache Region................ 7-16
Defining a Cache Group................. 7-16
Defining a Cache Subregion ......................... 7-16
Defining and Using Cache Objects ............... 7-17
Implementing a CacheLoader Object........................... 7-18
Using CacheLoader Helper Methods.................... 7-18
Invalidating Cache Objects ............................ 7-19
Destroying Cache Objects .............. 7-20
Multiple Object Loading and Invalidation.................. 7-20
Java Object Cache Configuration.................. 7-22
Examples .................. 7-25
Declarative Cache........................... 7-27
Declarative Cache File Sample............... 7-28
Declarative Cache File Format ............... 7-28
Examples .................. 7-30
Declarable User-Defined Objects........................... 7-32
Declarable CacheLoader, CacheEventListener, and CapacityPolicy ............... 7-33
Initializing the Java Object Cache in a Non-OC4J Container ............................ 7-33
Capacity Control ............................. 7-34
Implementing a Cache Event Listener ................... 7-36
Restrictions and Programming Pointers...................... 7-38
Working with Disk Objects................. 7-39
Local and Distributed Disk Cache Objects .................. 7-39
Local Objects............................ 7-39
Distributed Objects .................. 7-40
Adding Objects to the Disk Cache................ 7-40
Automatically Adding Objects .............. 7-40
Explicitly Adding Objects....................... 7-40
Using Objects that Reside Only in Disk Cache.................... 7-41
Working with StreamAccess Objects ................ 7-42
Creating a StreamAccess Object.................... 7-42
Working with Pool Objects ................. 7-43
Creating Pool Objects ..................... 7-43
Using Objects from a Pool.............. 7-44
Implementing a Pool Object Instance Factory ............................ 7-45
Pool Object Affinity ........................ 7-45
Running in Local Mode ....................... 7-46
Running in Distributed Mode............................ 7-46
Configuring Properties for Distributed Mode............................ 7-47
Setting the distribute Configuration Property..................... 7-47
Setting the discoveryAddress Configuration Property...................... 7-47
Using Distributed Objects, Regions, Subregions, and Groups................. 7-47
Using the REPLY Attribute with Distributed Objects ........................ 7-47
Using SYNCHRONIZE and SYNCHRONIZE_DEFAULT................ 7-48
Accessing Objects in Remote Caches ......................... 7-51
Cached Object Consistency Levels ............... 7-53
Using Local Objects ................. 7-54
Propagating Changes Without Waiting for a Reply........................... 7-54
Propagating Changes and Waiting for a Reply................... 7-54
Serializing Changes Across Multiple Caches ...................... 7-54
Sharing Cached Objects in an OC4J Servlet ................ 7-55
Using User-Defined Class Loaders............... 7-55
HTTP and Security for Distributed Cache................... 7-55
HTTP ........................ 7-55
SSL............................. 7-56
Firewall ..................... 7-57
Restricting Incoming Connections ........................ 7-58
Monitoring and Debugging ................ 7-58
XML Schema for Cache Configuration ............................. 7-62
XML Schema for Attribute Declaration ............................ 7-64
8 Oracle XML Query Service
Introduction to Oracle XML Query Service ........................ 8-1
What Is XQS? ..................... 8-2
Technologies Related to XQS............................ 8-2
A Quick Look at XQuery ........................... 8-2
The Oracle XQuery Implementation........................ 8-3
Comparing XQS with the XQuery API for Java ..................... 8-6
Why Use XQS?................... 8-6
Requirements, Limitations, and Special Notes .............. 8-7
Overview of XQS Features and Functionality.................... 8-8
XQS Data Source Support ................. 8-8
Supported Categories of Data Sources .................... 8-8
Data Source Access Through XQuery Functions ................... 8-9
What Do Data Source Function Objects Do? .......................... 8-9
Overview of Preparing Data Sources.................... 8-10
Introduction to XQS Configuration and the Configuration File .............. 8-10
Introduction to XQS Client Interfaces .......................... 8-10
Introduction to OC4JPackager ...................... 8-12
Security for XQS Applications ...................... 8-13
Introduction to XQS Performance and Optimization Features................ 8-13
Introduction to XQS Error Handling............................ 8-13
Summary of the Main Steps in Using XQS.................. 8-14
How to Prepare to Use Your Data Sources........................ 8-15
Preparing to Use a Non-XML Document Source ....................... 8-15
What Is D3L? ............................ 8-15
D3L Schema Files ..................... 8-16
Configuring XQS to Use D3L................. 8-16
Preparing to Use an XQS View ..................... 8-17
Preparing to Use a Database Source (SQL-Based XQS View) .................. 8-18
Preparing to Use a WSDL Source with SOAP Binding ............................. 8-20
Preparing to Use a Custom Class or EJB (WSDL Source with Java or EJB Binding) ............ 8-21
How to Configure Your XQS Functions............................ 8-22
Configuring an XQS Function that Accesses a Document Source........................... 8-22
Configuring an XQS Function that Uses an XQS View............................. 8-25
Configuring an XQS Function that Accesses a WSDL Source.................. 8-31
How to Design Your Queries .............. 8-35
Query Considerations.................... 8-36
Query Examples .............. 8-36
Type-Checking for Input Parameters........................... 8-38
How to Develop Your Application Code: Using the XQS Client Interfaces.............. 8-39
Supported Types for Query Parameters...................... 8-39
General Coding Steps in Using XQS Client APIs....................... 8-40
Stateful Versus Stateless Clients ................... 8-41
Using the Java Interface Client API.............. 8-42
Example 1: XQSFacadeI API .................. 8-43
Example 2: XQSFacadeI API with an Ad-Hoc Query......................... 8-46
Example 3: XQSFacadeI API with an XQS View................. 8-48
Using the EJB Client API................ 8-52
EJB Clients for Stateful Versus Stateless Sessions ............... 8-52
Use of the EJB Client API in Stateful Sessions ..................... 8-53
Example: EJB Client API with an XQS View in a Stateless Session.................. 8-53
Using the JSP Tag Library.............. 8-55
JSP Tags for Stateful Versus Stateless Access ...................... 8-56
Example: JSP Tags with an XQS View in a Stateful Access Pattern ................. 8-56
Example: JSP Tags with an Ad-Hoc Query in a Stateless Access Pattern ....................... 8-57
Using an XQS View Exposed as a Web Service Operation....................... 8-58
How to Use OC4JPackager to Package Your XQS Application.................... 8-58
Steps in Using OC4JPackager........................ 8-59
Preparing to Run OC4JPackager............................ 8-59
Running OC4JPackager: Required and Optional Parameters and Properties................ 8-59
Running OC4JPackager on the Command Line......................... 8-60
Running OC4JPackager Through Ant.......................... 8-61
OC4JPackager Basic Output .......................... 8-61
OC4JPackager Additional Output to Expose XQS Views As Web Service Operations ....... 8-62
Example: Configuration to Expose a View As a Web Service Operation........................ 8-63
Example: EAR File for a View Exposed As a Web Service Operation ............................. 8-63
Example: WAR File for a View Exposed As a Web Service Operation ........................... 8-64
Example: WSDL Document for a View Exposed As a Web Service Operation.............. 8-64
Using XQS Performance Features ...................... 8-66
Performance Considerations for Using the XQS Stateless or Stateful Client APIs................ 8-66
Configuring XQS Caching ............................. 8-66
XQS Cache Settings.................. 8-66
XQS Caching Strategies........................... 8-67
Caching and Nondeterministic Results ................ 8-68
Configuring XQS Document Sources for Large Data ................ 8-68
Using XQS Error Handling Modes and APIs .................. 8-69
Configuring XQS Function Error Handling................ 8-69
Retrieving XQS Error Objects........................ 8-71
Obtaining Information from XQS Error Objects......................... 8-72
Example: Error Retrieval and Processing.................... 8-74
Using XQS in a BPEL Environment................... 8-75
Registering the BPEL XPath Function for XQuery..................... 8-75
Using BPEL XQuery Function Parameters.................. 8-76
Accessing Context Items with XQuery ........................ 8-77
Using XQS View Functionality in BPEL ...................... 8-77
Top Level Views....................... 8-77
Nested View............................. 8-78
Using External XQuery Variables................. 8-78
Using BPEL Process Variables in an XQS View ........................ 8-80
Using BPEL Namespaces and Folders for XQS Views .............. 8-80
Default Namespace and Folder ............................. 8-81
Custom Namespaces and Sub-Folders ................. 8-81
Using a URL as a View Name ....................... 8-82
XQS Client APIs Reference................. 8-82
XQSFactory Reference .................... 8-82
XQS QueryParameterI Reference.................. 8-83
Factory Methods Returning QueryParameterI.................... 8-83
QueryParameterI Methods ..................... 8-83
XQSFacadeI Reference.................... 8-86
Factory Method Returning XQSFacadeI............... 8-86
XQSFacadeI Methods .............. 8-86
XQS EJB Client API Reference....................... 8-87
Stateful EJB Client Methods ................... 8-87
Stateless EJB Client Methods.................. 8-88
XQS JSP Tag Library Reference..................... 8-88
JSP Tags for Stateful Access.................... 8-88
XQS executeCursor Tag ................... 8-89
XQS param Tag ................. 8-91
XQS next Tag ..................... 8-92
XQS close Tag.................... 8-93
JSP Tag for Stateless Access.................... 8-93
XQS execute Tag ............... 8-93
XQSErrorI Reference...................... 8-94
XQS Configuration File Reference .................... 8-96
.................. 8-97
......................... 8-98
.................. 8-98
........................ 8-98
............................ 8-99
........................... 8-100
.......................... 8-100
................ 8-101
..................... 8-102
................... 8-102
.................... 8-103
................... 8-103
......................... 8-104
............................. 8-105
............................ 8-106
................... 8-107
............... 8-107
.................. 8-108
................ 8-108
.............. 8-109
........................ 8-110
.................... 8-111
.................. 8-111
.................. 8-111
............... 8-112
................... 8-112
................. 8-113
............... 8-113
......................... 8-113
........................... 8-115
.................... 8-116
...................... 8-116
OC4JPackager Reference ................... 8-117
OC4JPackager Parameters ........................... 8-117
appArchives........................... 8-117
help.......................... 8-117
jsp ............................ 8-117
name........................ 8-118
no_ws...................... 8-118
output ..................... 8-118
repository ............... 8-118
sf .............................. 8-118
sl............................... 8-118
xqsConfigFile......................... 8-119
Java Properties for OC4JPackager .............. 8-119
oracle.home............................ 8-119
java.home ............... 8-119
java.util.logging.properties.file ............................ 8-119
xds.packager.work.dir........................... 8-120
XQS Troubleshooting ......................... 8-120
Enabling OC4J Logging................ 8-120
Key XQS Symptoms, Causes, and Remedies ............................ 8-120
XQS Sample......................... 8-121
9 Using The Application Client Container
Container Overview................ 9-1
Requirements ........................... 9-2
Developing Application Clients ........................... 9-3
Creating a Main Class........................ 9-3
Accessing Resources Using JNDI ................... 9-3
Using Annotations ...................... 9-4
Using the JNDI API .................... 9-4
Using a Deployment Descriptor ............... 9-4
Setting JNDI Properties ..................... 9-5
Using a Deployment Descriptor ...................... 9-5
Packaging a Client............................. 9-6
Implementing a Custom Security Handler .................... 9-6
Starting Application Clients .................. 9-6
A Third Party Licenses
ANTLR ..................................... A-1
The ANTLR License......................... A-1
Apache ...................... A-1
The Apache Software License ......................... A-1
Apache SOAP.......................... A-6
Apache SOAP License ...................... A-6
DBI Module............................. A-9
Perl Artistic License .......................... A-9
Preamble..................... A-9
Definitions.................. A-9
expat ........................ A-11
FastCGI................................... A-11
FastCGI Developer's Kit License................... A-11
Module mod_fastcgi License......................... A-12
Info-ZIP Unzip Package....................... A-13
The Info-ZIP Unzip Package License ........................... A-13
Jabberbeans ........................... A-13
JSR 110 .................................... A-14
Jaxen........................ A-14
The Jaxen License ............................ A-14
JGroups................................... A-15
The GNU License ............................ A-15
JTidy........................ A-22
mod_dav................................. A-22
mod_mm and mod_ssl.......................... A-23
OpenSSL ................................ A-24
OpenSSL License ............................. A-24
Perl........................... A-26
Perl Kit Readme.............. A-26
mod_perl 1.29 License .................... A-27
mod_perl 1.99_16 License .............. A-28
Perl Artistic License ........................ A-31
Preamble................... A-31
Definitions................ A-31
PHP.......................... A-33
The PHP License............................. A-33
SAXPath ................................. A-34
The SAXPath License...................... A-34
Sun Microsystems, Inc. ........................ A-35
The Java Logo ................. A-35
W3C DOM ............................. A-35
The W3C License............................ A-35.

Read more about Oracle Containers for J2EE Services Guide


Resource: http://download.oracle.com/docs/cd/B31017_01/web.1013/b28958.pdf
Posted By : Leo Lopes
On date : 07.15.08

Most used J2EE Tutorials

J2EE Tutorials ( Ebooks , PDF's )
Performance Tuning Essentials for Java and J2EE Web Application Architecture (based J2EE 1.4 Tutorial) WebObjects J2EE Programming Guide An Architects Guide Enterprise Application Integration J2EE and .net
JSP - Java Server Page (j2ee term)
JSP - Java Server Page (j2ee term) is a keyword/term used in JAVA - J2EE for Forms and Designer Developers
J2EE Interview Questions & Answers
What is "abstract schema, What is "access control, What is "ACID, What is "activation", What is "applet container", What is "application assembler" , What is "application component provider", What is "asant", What is backing bean , What is binding (JavaServer Faces technology) , What is business logic , What is CDATA , What is XSLTC , What is XSLT, What is XPath ... etc.. etc
OC4J - Oracle Containers for Java (j2ee term)
OC4J - Oracle Containers for Java (j2ee term) is a keyword/term used in JAVA - J2EE for Forms and Designer Developers
Java Programming Tutorial
This Java tutorial covers the details of Java Programming.The JAVA™ programming language is now being used to write distributed Internet applications. Unlike traditional languages, the JAVA™ language was designed to be used on a network.
Java/J2EE Job Interview Companion Book
Have you got the time to read 10 or more books and articles to add value prior to the interview? This book has been written mainly from the perspective of Java/J2EE job seekers and interviewers.
ADF BC – ADF Business Components (j2ee term)
ADF BC – ADF Business Components (j2ee term)is a keyword/term used in JAVA - J2EE for Forms and Designer Developers
Core J2EE Patterns tutorial Best Practices and Design Strategies
Core J2EE Patterns is the gospel that should accompany every J2EE application server...Built upon the in-the-trenches expertise of its veteran architect authors, this volume unites the platform's many technologies and APIs in a way that application architects can use, and provides insightful answers to the whys, whens, and hows of the J2EE platform
Struts 2 in Action tutorial book
The original Struts project revolutionized Java web development and its rapid adoption resulted in the thousands of Struts-based applications deployed worldwide. Keeping pace with new ideas and trends, Apache Struts 2 has emerged as the product of a merger between the Apache Struts and OpenSymphony WebWork projects, united in their goal to develop an easy-to-use yet feature-rich framework.
Servlets and JSP Passing the Sun Certified Web Component Developer Exam tutorial
Isn't it time you learned the latest (J2EE 1.4) versions of Servlets & JSPs? This book will get you way up to speed on the technology you'll know it so well, in fact, that you can pass the Sun Certified Web Component Developer (SCWCD) 1.4 exam.
MVC - Model View Controller (j2ee term)
MVC - Model View Controller (j2ee term) is a keyword/term used in JAVA - J2EE for Forms and Designer Developers
Oracle Application Server Containers for J2EE Services Guide
This Java tutorial covers the details of Oracle Application Server Containers for J2EE Services Guide.
Oracle Containers for J2EE Security Guide
This Java tutorial covers the details of Oracle Containers for J2EE Security Guide.This manual discusses Oracle Containers for J2EE (OC4J) security features. This preface contains these topics:
JVM - Java Virtual Machine (j2ee term)
JVM - Java Virtual Machine (j2ee term) is a keyword/term used in JAVA - J2EE for Forms and Designer Developers
JSF - Java Server Faces (j2ee term)
JSF - Java Server Faces (j2ee term) is a keyword/term used in JAVA - J2EE for Forms and Designer Developers

Latest added J2EE Tutorials

Servlets and JSP Passing the Sun Certified Web Component Developer Exam tutorial
Isn't it time you learned the latest (J2EE 1.4) versions of Servlets & JSPs? This book will get you way up to speed on the technology you'll know it so well, in fact, that you can pass the Sun Certified Web Component Developer (SCWCD) 1.4 exam.
Struts 2 in Action tutorial book
The original Struts project revolutionized Java web development and its rapid adoption resulted in the thousands of Struts-based applications deployed worldwide. Keeping pace with new ideas and trends, Apache Struts 2 has emerged as the product of a merger between the Apache Struts and OpenSymphony WebWork projects, united in their goal to develop an easy-to-use yet feature-rich framework.
Core J2EE Patterns tutorial Best Practices and Design Strategies
Core J2EE Patterns is the gospel that should accompany every J2EE application server...Built upon the in-the-trenches expertise of its veteran architect authors, this volume unites the platform's many technologies and APIs in a way that application architects can use, and provides insightful answers to the whys, whens, and hows of the J2EE platform
Enterprise JavaBeans 3 Tutorial Book
If you're up on the latest Java technologies, then you know that Enterprise JavaBeans (EJB) 3.0 is the hottest news in Java this year. In fact, EJB 3.0 is being hailed as the new standard of server-side business logic programming.
Java/J2EE Job Interview Companion Book
Have you got the time to read 10 or more books and articles to add value prior to the interview? This book has been written mainly from the perspective of Java/J2EE job seekers and interviewers.
The J2EE Tutorial for the Sun ONE Platform
THIS tutorial is a beginner’s guide to developing J2EE applications for the Sun™ Open Networking Environment (Sun ONE) platform. Here we cover all the things you need to know to make the best use of this tutorial.This tutorial is intended for programmers interested in developing J2EE applications using the Sun ONE platform. Specifically, it uses the Sun ONE Studio 4, Enterprise Edition for Java to develop J2EE applications and deploy them on Sun ONE Application Server 7.
Java Programming Tutorial
This Java tutorial covers the details of Java Programming.The JAVA™ programming language is now being used to write distributed Internet applications. Unlike traditional languages, the JAVA™ language was designed to be used on a network.
Oracle Application Server Containers for J2EE Security Guide
This Java tutorial covers the details of Oracle Application Server Containers for J2EE Security Guide.This manual discusses how to make effective use of the Oracle Application Server Containers for J2EE (OC4J) security features.
Designing Enterprise Applications
This Java tutorial covers the details of Designing Enterprise Applications.SINCE its introduction more than two years ago, the Java 2 Platform, Enterprise Edition (J2EE), has rapidly established a new model for developing distributed applications.
Sun ONE Application Server 7 Developer’s Guide to J2EE Features
This Java tutorial covers the details of Sun ONE Application Server 7 Developer’s Guide to J2EE Features.This guide describes how to create and run Java™ 2 Platform, Enterprise Edition (J2EE™ platform) applications that follow the new open Java standards model for the Java™Database Connectivity (JDBC™), transaction, Java Naming and Directory Interface™ (JNDI), Java™ Message Service (JMS), and JavaMail™ APIs, on the Sun™ Open Net Environment (Sun ONE) Application Server 7.