Tutorial Downloads .com

Home

Oracle Containers for J2EE Deployment Guide

This Java tutorial covers the details of Oracle Containers for J2EE Deployment Guide.This book covers various aspects of deploying J2EE-compliant applications and standalone modules into Oracle Containers for J2EE (10.1.3.1.0), or OC4J.

Contents
Preface ............................ xi
Intended Audience....................... xi
Documentation Accessibility ............................. xi
Related Documents ..................... xii
Conventions ................ xiii
1 Getting Started
Overview of Deployment in OC4J................ 1-1
Valid Components for Deployment .............. 1-1
Support for the J2EE Application Deployment API (JSR-88) in OC4J.................. 1-2
Hot Deployment in OC4J.......................... 1-2
Deployment of Applications .................. 1-2
Deployment of Shared Libraries ............................ 1-2
Options for Deploying Applications into OC4J .............. 1-3
Application Server Control Console User Interface.......................... 1-3
OC4J Ant Tasks.................... 1-3
The admin_client.jar Command-Line Utility............... 1-4
The admin.jar Command-Line Utility........................... 1-4
Oracle JDeveloper ................ 1-5
2 Deploying, Redeploying, and Undeploying J2EE Applications in OC4J
Overview of the Application Deployment Process ............... 2-1
Designating a Parent Application.................. 2-1
Binding a Web Application to a Web Site .................... 2-2
Creating or Applying a Deployment Plan.................... 2-2
Using Dynamic HTTP Server Mount Points in Oracle Application Server .............. 2-2
OC4J Application Deployment Process ........................ 2-3
Impact of JDK Version on Deployed Applications ........................... 2-4
Example of a Deployed Application Directory Structure ................ 2-4
Overview of Redeploying an Application ........................ 2-5
Restart of OC4J After RMI or Manual Reconfiguration ................... 2-5
Impact of Redeploying a Parent Application............... 2-6
Overview of Undeploying an Application........................ 2-6
Results of Removing an Application from OC4J............... 2-6
Impact of Undeploying a Parent Application.............. 2-6
Results of Errors in Deployment Descriptors .............. 2-6
3 Deploying Enterprise JavaBeans
Overview of EJB Deployment........................ 3-1
Generation of Client-Side IIOP Stubs ............... 3-2
Generating Stubs with Application Server Control .......................... 3-2
Generating Stubs with admin_client.jar ....................... 3-3
Generating Stubs with the OC4J Ant Tasks ................. 3-3
Incremental Redeployment of Updated EJB Modules.......................... 3-4
Impact of EJB Redeployment on Application Clients .......................... 3-5
Impact of Redeploying Session Beans........................... 3-5
Stateless Session Beans....................... 3-5
Stateful Session Beans ........................ 3-5
Impact of Redeploying Entity Beans............................. 3-6
Bean-Managed Persistence Beans........................... 3-6
Container-Managed Persistence Beans.................. 3-6
4 Deploying Large Applications
Specifying the Compilation Mode to Use ......................... 4-1
Configuring the Java Compiler ..................... 4-2
Specifying an Alternative Java Compiler ..................... 4-2
Configuring Out-of-Process or In-Process Compiler Execution ........................... 4-3
Summary of Java Compiler Configuration Parameters ................... 4-3
Tuning the OC4J JVM for Large Deployments ................ 4-4
5 Deploying Web Modules
Deploying a Standalone Web Module ............... 5-1
Redeploying a Standalone Web Application.................... 5-1
Redeploying an Updated Web Module into an Existing Application..................... 5-2
Adding or Modifying JavaServer Pages in an Active Web Module......................... 5-2
Setting JSP Configuration Parameters in the XML Configuration File................... 5-3
6 Deploying Resource Adapters
Deploying a Standalone RAR........................ 6-1
Deploying a Resource Adapter with Dependencies ......................... 6-2
Deploying Multiple Versions of a Standalone RAR ......................... 6-2
Redeploying or Undeploying a Standalone RAR.................. 6-3
7 Deploying Web Services
Deploying a Web Service................ 7-1
Redeploying a Web Service? .......................... 7-1
8 Working with Deployment Plans
Deployment Plan Overview........................... 8-1
How Deployment Plans Interact with Packaged Deployment Descriptors .............. 8-2
Overview of J2EE and OC4J Deployment Descriptors..................... 8-2
Creating or Editing a Deployment Plan............................. 8-3
Creating or Editing Deployment Plans with Application Server Control Console ................. 8-4
Creating or Editing Deployment Plans with Oracle JDeveloper .......................... 8-4
Setting Properties in a Deployment Plan .......................... 8-4
Setting J2EE Application Configuration Properties.......................... 8-5
Setting Web Module Configuration Properties .............. 8-11
Setting Enterprise JavaBeans Module Configuration Properties....................... 8-17
Setting General EJB Properties............................. 8-17
Setting Entity Bean Properties.............. 8-18
Setting Session Bean Properties ........................... 8-21
Setting Message-Driven Bean Properties ................. 8-23
Setting Web Services Configuration Properties.............. 8-24
Setting General Web Services Properties ................. 8-24
Setting Web Service Description Properties............................. 8-25
Setting Application Client Configuration Properties .................... 8-25
Setting Resource Adapter Properties ......................... 8-26
9 Using the Application Server Control Console for Deployment
Accessing Application Server Control Console ............... 9-2
Accessing Application Server Control Console in Standalone OC4J ................... 9-2
Accessing Application Server Control Console in Oracle Application Server ......................... 9-2
Setting Log Levels ..................... 9-3
Deploying an Application to an OC4J Instance or Group of Instances .................. 9-4
Deploying or Redeploying an Application .................. 9-4
Completing Configuration Tasks Before Deployment ..................... 9-5
Selecting the Security Provider ............... 9-6
Mapping Security Roles to Users and User Groups .................. 9-6
Configuring Enterprise JavaBeans Included in the Application.................... 9-6
Managing Class Loading to Import Shared Libraries ............... 9-7
Configuring Application Clustering ...................... 9-8
Providing Resource Mappings................ 9-9
Undeploying an Application ...................... 9-10
Creating and Managing Shared Libraries ...................... 9-10
Starting, Restarting, and Stopping Applications................ 9-10
Restarting and Stopping OC4J Instances ....................... 9-11
Managing Data Sources and Connection Pools .................. 9-12
Managing JMS Resources............................ 9-13
10 Using OC4J Ant Tasks for Deployment
Preparing to Use OC4J Ant Tasks............... 10-3
Meeting Prerequisites for Using OC4J Ant Tasks .......................... 10-3
Incorporating the OC4J Ant Tasks into Your Environment ............... 10-4
Incorporating the Ant Tasks Using Ant 1.6.5 Outside OC4J .............. 10-5
Setting the Deployer URI ....................... 10-5
Invoking a Task on a Group of OC4J Instances....................... 10-5
Invoking a Task on a Specific OC4J Instance........................... 10-6
Invoking a Task on a Standalone OC4J Server ........................ 10-7
Enabling Logging .............. 10-7
Invoking the OC4J Ant Tasks................ 10-8
Deploying an Archive .................. 10-9
Deploying a J2EE Application (EAR)......................... 10-9
Properties for EAR Deployment.......................... 10-9
Deploying a Standalone Web Module (WAR).............. 10-10
Deploying a Standalone Resource Adapter (RAR) ...................... 10-11
Binding Web Modules to a Web Site After Deployment ................ 10-12
Bind All Web Modules to a Single Web Site ................. 10-12
Bind a Web Module to a Specific Web Site and Set the Context URI.............. 10-13
Redeploying an Archive ............................ 10-14
Undeploying an Archive............................ 10-15
Updating Modified Classes in a Deployed EJB Module................. 10-15
Creating and Managing Shared Libraries .................... 10-16
Installing a Shared Library .................. 10-16
Modifying an Existing Shared Library..................... 10-18
Removing a Shared Library................. 10-19
Starting, Restarting, and Stopping Applications.............. 10-20
Restarting and Stopping OC4J Instances ..................... 10-20
Managing Data Sources ............................. 10-20
Adding, Testing, and Removing Data Source Connection Pools .................... 10-21
Adding a Data Source Connection Pool ................. 10-21
Testing a Data Source Connection Pool.................. 10-22
Removing a Data Source Connection Pool............................. 10-22
Adding, Testing, and Removing Data Sources............................. 10-23
Adding a Managed Data Source........................ 10-23
Removing a Managed Data Source ................... 10-24
Adding a Native Data Source ............................ 10-24
Removing a Native Data Source........................ 10-25
Testing a Database Connection.......................... 10-26
Testing a Data Source ................... 10-27
Getting the Data Sources Descriptor for an Application ........................... 10-27
Managing JMS Resources.......................... 10-28
Managing JMS Connection Factories ...................... 10-28
Adding a JMS Connection Factory.................... 10-28
Removing a JMS Connection Factory ............... 10-29
Getting Information About JMS Connection Factories .............. 10-29
Managing JMS Destinations ................ 10-30
Adding a JMS Destination .................. 10-30
Removing a JMS Destination ............................. 10-31
Getting Information About JMS Destinations ....................... 10-31
11 Using the admin_client.jar Utility for Deployment
Preparing to Use admin_client.jar.............. 11-2
Understanding the admin_client.jar Syntax and URI Specification .................. 11-2
Deploying to a Group of OC4J Instances Within a Cluster ......................... 11-3
Deploying to a Specific OC4J Instance................ 11-4
Deploying to a Standalone OC4J Server................... 11-4
Validating a URI............... 11-5
Downloading and Extracting the Remote Administration Client ..................... 11-5
Printing Usage Text to the Console ............................ 11-6
Enabling Logging .............. 11-7
Deploying an Archive .................. 11-7
Deploying a J2EE Application (EAR)......................... 11-8
Deploying a J2EE Application from a Remote Client.................... 11-9
Deploying a Standalone Web Module (WAR).............. 11-10
Deploying a Standalone Resource Adapter (RAR) ...................... 11-11
Using a Script File for Batch Deployment ............... 11-12
Binding Web Modules to a Web Site After Deployment ................ 11-12
Bind All Web Modules to a Single Web Site ................. 11-13
Bind a Specific Web Module to a Specific Web Site and Set the Context Root .................... 11-13
Redeploying an Archive ............................ 11-13
Undeploying an Archive............................ 11-14
Undeploying an EAR or Standalone WAR ................... 11-14
Undeploying a Standalone RAR............... 11-14
Updating Modified Classes in a Deployed EJB Module................. 11-15
Creating and Managing Shared Libraries .................... 11-15
Installing a Shared Library .................. 11-15
Modifying an Existing Shared Library..................... 11-17
Viewing the Contents of a Shared Library .............. 11-17
Listing All Shared Libraries................. 11-18
Removing a Shared Library................. 11-18
Starting, Restarting, and Stopping Applications.............. 11-18
Restarting and Stopping OC4J Instances ..................... 11-18
Restarting an OC4J Instance or Group of Instances..................... 11-19
Stopping an OC4J Instance or Instances .................. 11-19
Managing Data Sources ............................. 11-19
Adding, Testing, and Removing Data Source Connection Pools .................... 11-20
Adding a Data Source Connection Pool ................. 11-20
Testing a Data Source Connection Pool.................. 11-20
Removing a Data Source Connection Pool............................. 11-21
Adding, Testing, and Removing Data Sources............................. 11-21
Adding a Managed Data Source........................ 11-21
Removing a Managed Data Source ................... 11-22
Adding a Native Data Source ............................ 11-23
Removing a Native Data Source........................ 11-23
Testing a Database Connection.......................... 11-24
Testing a Data Source ................... 11-24
Getting the Data Sources Descriptor for an Application ........................... 11-25
Managing JMS Resources.......................... 11-25
Managing JMS Connection Factories ...................... 11-25
Adding a JMS Connection Factory.................... 11-25
Removing a JMS Connection Factory ............... 11-26
Getting Information About JMS Connection Factories .............. 11-26
Managing JMS Destinations ................ 11-26
Adding a JMS Destination .................. 11-26
Removing a JMS Destination ............................. 11-27
Getting Information About JMS Destinations ....................... 11-27
Managing OC4J Through a Remote Client .................. 11-28
Using admin_client.jar Commands Remotely .............. 11-28
Connecting to a Remote Oracle Application Server Instance Using JConsole .................... 11-28
Using a JMX Programmatic Client to Manage OC4J Remotely ....................... 11-29
12 Deploying to Standalone OC4J with admin.jar
Understanding the admin.jar Syntax .............. 12-1
Deploying or Redeploying an Application.................... 12-2
Undeploying an Application ...................... 12-4
Updating an EJB Module Within a Deployed Application .............. 12-4
Deploying or Redeploying a Standalone Connector ......................... 12-5
Undeploying a Standalone Connector ............................ 12-6
13 Deploying Web Applications from Eclipse
Deploying a Web Application with the Web Tools Platform ................. 13-1
Connecting to OC4J from Eclipse ............... 13-1
Building a Web Application .................. 13-2
Deploying a Web Application............... 13-2
Using Ant Tasks from the OC4J Administration Client with Eclipse .................. 13-2
14 Using Automatic Deployment in OC4J
Overview of Automatic Deployment in OC4J............... 14-1
How to Redeploy Updated Files As Needed.................. 14-1
When to Use Automatic Deployment ........................ 14-1
Using an Auto-Deployment Directory............................ 14-2
Using the Check-for-Updates Feature ............................. 14-2
Enabling or Disabling Check for Updates................. 14-3
Redeploying Configuration Files, Deployment Descriptors, and WAR Files Automatically ........
14-3
Impact of Redeploying a Modified Configuration File Automatically............................ 14-4
Impact of Redeploying a Modified Deployment Descriptor Automatically .................. 14-4
Impact of Redeploying Modified Files in a War Automatically................. 14-5
Forcing a One-Time Redeployment Using admin.jar ........................ 14-5
15 Troubleshooting Deployment Errors
Interruptions During Application Deployment ................. 15-1
Exceptions During Application Deployment ................ 15-1
OC4J Out-of-Memory Errors ................. 15-2
Java Compiler Out-of-Memory Errors ....................... 15-2
Stack Overflow Errors ............................ 15-2
Errors for Number of Open Files ................ 15-3
A Third Party Licenses
ANTLR ................. A-1
The ANTLR License................. A-1
Apache .................. A-1
The Apache Software License ................. A-2
Apache SOAP............................ A-6
Apache SOAP License .............. A-7
DBI Module............................. A-10
Perl Artistic License ................ A-10
Preamble..................... A-10
Definitions.................. A-10
FastCGI............... A-12
FastCGI Developer's Kit License................. A-12
Module mod_fastcgi License................. A-13
Info-ZIP Unzip Package............... A-13
The Info-ZIP Unzip Package License ......................... A-14
JSR 110 ................ A-14
Jaxen.................... A-14
The Jaxen License .............. A-14
JGroups............... A-15
The GNU License .............. A-15
mod_mm and mod_ssl.................. A-22
OpenSSL .................. A-23
OpenSSL License ............... A-23
Perl....................... A-25
Perl Kit Readme................ A-25
mod_perl 1.29 License ............................ A-26
mod_perl 1.99_16 License ...................... A-27
Perl Artistic License ................ A-30
Preamble..................... A-30
Definitions.................. A-30
SAXPath ................... A-32
The SAXPath License.............. A-32
W3C DOM ............... A-33
The W3C License.............. A-33.

Read more about Oracle Containers for J2EE Deployment Guide


Resource: http://download.oracle.com/docs/cd/B31017_01/web.1013/b28951.pdf
Posted By : Alen Solly
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.