Sun ONE Application Server 7, Update 1 Developer's Guide |
817-2171-10 |
Updated: February 20, 2003 |
ContentsWho Should Use This Guide
Using the Documentation
How This Guide Is Organized
Related Information
Documentation Conventions
General Conventions
Product Support
Conventions Referring to Directories
Application Requirements
About the J2EE Programming Model
The Client Layer
Best Practices for Designing J2EE Applications
Browser Clients
The Presentation Layer
Simple CORBA Clients
ACC Clients
Web Service Clients
JMS Clients
Servlets
The Business Logic Layer
JSPs
Static Content
SHTML
CGI
Session Beans
The Data Access Layer
Entity Beans
Message-Driven Beans
Presenting Data with Servlets and JSPs
Creating Reusable Application Code
Modularizing Applications
Functional Isolation
Reusable Code
Prepackaged Components
Shared Framework Classes
Session and Security Issues
Setting Up a Development Environment
Installing and Preparing the Server for Development
Steps for Creating Components
Development Tools
The asadmin Command
The Administration Interface
Sun ONE Studio
Apache Ant
Migration Tools
Profiling Tools
Source Code Control Tools
Other Tools Supported Through Sun ONE Studio
Creating Web Applications
Creating Enterprise JavaBeans
Creating ACC Clients
Creating Connectors
Creating Complete Applications
Sun ONE Application Server Security Goals
Sun ONE Application Server Specific Security Features
Sun ONE Application Server Security Model
Web Application and URL Authorizations
Security Responsibilities Overview
Invocation of Enterprise Bean Methods
ACC Client Invocation of Enterprise Bean Methods
Application Developer
Common Security Terminology
Application Assembler
Application Deployer
Authentication
Container Security
Authorization
Realms
Role Mapping
Programmatic Security
Guide to Security Information
Declarative Security
Application Level Security
Web Component Level Security
EJB Level Security
User Information
Realm Configuration
Security Roles
How to Configure a Realm and Set the Default Realm
The server.policy File
Using the Administration Interface
Supported Realms
Using the asadmin Command
Editing the server.xml File
file
ldap
certificate
solaris
Creating a Custom Realm
Default Permissions
Programmatic Login
Changing Permissions for an Application
Disabling the Security Manager
Precautions
Granting Programmatic Login Permission
The ProgrammaticLogin Class
Assembling and Deploying J2EE Applications
Overview of Assembly and Deployment
Modules
Assembling Modules and Applications
Applications
J2EE Standard Descriptors
Sun ONE Application Server Descriptors
Naming Standards
JNDI Naming
Directory Structure
Runtime Environments
Module Runtime Environment
Classloaders
Application Runtime Environment
The Classloader Hierarchy
Sample Applications
Classloader Universes
Circumventing Classloader Isolation
Tools for Assembly
Deploying Modules and Applications
Apache Ant
Assembling a WAR Module
Sun ONE Studio
The Deployment Descriptor Verifier
Assembling an EJB JAR Module
Assembling a Lifecycle Module
Assembling an Application
Assembling an ACC Client
Assembling a J2EE CA Resource Adapter
Deployment Names and Errors
Apache Ant Assembly and Deployment Tool
The Deployment Life Cycle
Dynamic Deployment
Tools for Deployment
Disabling a Deployed Application or Module
Dynamic Reloading
Apache Ant
Deployment by Module or Application
Sun ONE Studio
The asadmin Command
The Administration Interface
Deploying a WAR Module
Deploying an EJB JAR Module
Deploying a Lifecycle Module
The asadmin Command
Deploying an ACC Client
The Administration Interface
Deploying a J2EE CA Resource Adapter
Access to Shared Frameworks
Ant Tasks for Sun ONE Application Server 7
The Application Deployment Descriptor Files
sun-appserv-deploy
Reusable Subelements
sun-appserv-undeploy
sun-appserv-instance
sun-appserv-component
sun-appserv-admin
sun-appserv-jspc
server
component
fileset
The sun-application_1_3-0.dtd File
Subelements
Elements in the sun-application.xml File
Data
Attributes
sun-application
Sample Application XML Files
web
web-uri
context-root
pass-by-reference
unique-id
security-role-mapping
role-name
principal-name
group-name
Sample application.xml File
Sample sun-application.xml File
Enabling Debugging
Using the Administration Interface
JPDA Options
Editing the server.xml File
Using Sun ONE Studio for Debugging
Debugging JSPs
Generating a Stack Trace for Debugging
Sun ONE Message Queue Debugging
Logging
Using the Administration Interface
Profiling
Editing the server.xml File
The HPROF Profiler
The Optimizeit Profiler
The Wily Introscope Profiler
The JProbe Profiler
Developing Lifecycle Listeners
Server Life Cycle Events
The LifecycleListener Interface
The LifecycleEvent Class
The Server Lifecycle Event Context
Assembling and Deploying a Lifecycle Module
Considerations for Lifecycle Modules