Course (2-7-1) Java JEE 1.6 Part 1
- 1. Overview
- 1.1. Java EE 6 Platform Highlights
- 1.2. Java EE Application Model
- 1.3. Distributed Multitiered Applications
- 1.3.1. Security
- 1.3.2. Java EE Components
- 1.3.3. Java EE Clients
- 1.3.4. Web Components
- 1.3.5. Business Components
- 1.3.6. Enterprise Information System Tier
- 1.4. Java EE Containers
- 1.4.1. Container Services
- 1.4.2. Container Types
- 1.5. Web Services Support
- 1.5.1. XML
- 1.5.2. SOAP Transport Protocol
- 1.5.3. WSDL Standard Format
- 1.6. Java EE Application Assembly and Deployment
- 1.7. Packaging Applications
- 1.8. Development Roles
- 1.8.1. Java EE Product Provider
- 1.8.2. Tool Provider
- 1.8.3. Application Component Provider
- 1.8.4. Application Assembler
- 1.8.5. Application Deployer and Administrator
- 1.9. Java EE 6 APIs
- 1.9.1. Enterprise JavaBeans Technology
- 1.9.2. Java Servlet Technology
- 1.9.3. JavaServer Faces Technology
- 1.9.4. JavaServer Pages Technology
- 1.9.5. JavaServer Pages Standard Tag Library
- 1.9.6. Java Persistence API
- 1.9.7. Java Transaction API
- 1.9.8. Java API for RESTful Web Services
- 1.9.9. Managed Beans
- 1.9.10. Contexts and Dependency Injection for the Java EE Platform (JSR 299)
- 1.9.11. Dependency Injection for Java (JSR 330)
- 1.9.12. Bean Validation
- 1.9.13. Java Message Service API
- 1.9.14. Java EE Connector Architecture
- 1.9.15. JavaMail API
- 1.9.16. Java Authorization Contract for Containers
- 1.9.17. Java Authentication Service Provider Interface for Containers
- 1.10. Java EE 6 APIs in the Java Platform, Standard Edition 6 and 7
- 1.10.1. Java Database Connectivity API
- 1.10.2. Java Naming and Directory Interface API
- 1.10.3. JavaBeans Activation Framework
- 1.10.4. Java API for XML Processing
- 1.10.5. Java Architecture for XML Binding
- 1.10.6. SOAP with Attachments API for Java
- 1.10.7. Java API for XML Web Services
- 1.10.8. Java Authentication and Authorization Service
- 1.11. GlassFish Server Tools
- 2. Using the Tutorial Examples
- 2.1. Required Software
- 2.1.1. Java Platform, Standard Edition
- 2.1.2. Java EE 6 Software Development Kit
- 2.1.2.1. Java EE 6 Tutorial Component
- 2.1.2.2. NetBeans IDE
- 2.1.2.3. Apache Ant
- 2.1.3. Starting and Stopping the GlassFish Server
- 2.1.3.1. To Start the GlassFish Server Using NetBeans IDE
- 2.1.4. Starting the Administration Console
- 2.1.4.1. To Start the Administration Console Using NetBeans IDE
- 2.1.5. Starting and Stopping the Java DB Server
- 2.1.5.1. To Start the Database Server Using NetBeans IDE
- 2.1.6. Building the Examples
- 2.1.7. Tutorial Example Directory Structure
- 2.1.8. Getting the Latest Updates to the Tutorial
- 2.1.8.1. To Update the Tutorial through the Update Center
- 2.1.9. Debugging Java EE Applications
- 2.1.8.1. Using the Server Log
- 2.1.8.2. Using a Debugger
- 2.1. Required Software
- 3. Getting Started with Web Applications
- 3.1. Web Applications
- 3.2. Web Application Lifecycle
- 3.3. Web Modules: The hello1 Example
- 3.3.1. Examining the hello1 Web Module
- 3.3.2. Packaging a Web Module
- 3.3.3. Deploying a Web Module
- 3.3.4. Running a Deployed Web Module
- 3.3.5. Listing Deployed Web Modules
- 3.3.6. Updating a Web Module
- 3.3.7. Dynamic Reloading
- 3.3.8. Undeploying Web Modules
- 3.4. Configuring Web Applications: The hello2 Example
- 3.4.1. Mapping URLs to Web Components
- 3.4.2. Examining the hello2 Web Module
- 3.4.3. Running the hello2 Example
- 3.4.4. Declaring Welcome Files
- 3.4.5. Setting Context Parameters
- 3.4.6. Mapping Errors to Error Screens
- 3.4.7. Declaring Resource References
- 3.5. Further Information about Web Applications
- 4. JavaServer Faces Technology
- 4.1. What Is a JavaServer Faces Application?
- 4.2. JavaServer Faces Technology Benefits
- 4.3. Creating a Simple JavaServer Faces Application
- 4.3.1. Developing the Managed Bean
- 4.3.2. Creating the Web Page
- 4.3.3. Mapping the FacesServlet Instance
- 4.3.4. The Lifecycle of the hello Application
- 4.3.5. Running the hello Application
- 4.4. Further Information about JavaServer Faces Technology
- 5. Introduction to Facelets
- 5.1. What Is Facelets?
- 5.2. Developing a Simple Facelets Application
- 5.2.1. Creating a Facelets Application
- 5.2.2. Configuring the Application
- 5.2.3. Running the guessnumber Facelets Example
- 5.3. Using Facelets Templates
- 5.4. Composite Components
- 5.5. Web Resources
- 6. Expression Language
- 6.1. Overview of the EL
- 6.2. Immediate and Deferred Evaluation Syntax
- 6.2.1. Immediate Evaluation
- 6.2.2. Deferred Evaluation
- 6.3. Value and Method Expressions
- 6.3.1. Value Expressions
- 6.3.2. Method Expressions
- 6.4. Defining a Tag Attribute Type
- 6.5. Literal Expressions
- 6.6. Operators
- 6.7. Reserved Words
- 6.8. Examples of EL Expressions
- 7. Using JavaServer Faces Technology in Web Pages
- 7.1. Setting Up a Page
- 7.2. Adding Components to a Page Using HTML Tags
- 7.2.1. Common Component Tag Attributes
- 7.2.2. Adding HTML Head and Body Tags
- 7.2.3. Adding a Form Component
- 7.2.4. Using Text Components
- 7.2.5. Using Command Component Tags for Performing Actions and Navigation
- 7.2.6. Adding Graphics and Images with the h:graphicImage Tag
- 7.2.7. Laying Out Components with the h:panelGrid and h:panelGroup Tags
- 7.2.8. Displaying Components for Selecting One Value
- 7.2.9. Displaying Components for Selecting Multiple Values
- 7.2.10. Using the f:selectItem and f:selectItems Tags
- 7.2.11. Displaying the Results from Selection Components
- 7.2.13. Using Data-Bound Table Components
- 7.2.14. Displaying Error Messages with the h:message and h:messages Tags
- 7.2.15. Creating Bookmarkable URLs with the h:button and h:link Tags
- 7.2.16. Using View Parameters to Configure Bookmarkable URLs
- 7.2.17. The bookmarks Example Application
- 7.2.18. Resource Relocation Using h:outputScript and h:outputStylesheet Tags
- 7.3. Using Core Tags
- 8. Using Converters, Listeners, andValidators
- 8.1. Using the Standard Converters
- 8.1.1. Converting a Component’s Value
- 8.1.2. Using DateTimeConverter
- 8.1.3. Using NumberConverter
- 8.2. Registering Listeners on Components
- 8.2.1. Registering a Value-Change Listener on a Component
- 8.2.2. Registering an Action Listener on a Component
- 8.3. Using the Standard Validators
- 8.3.1. Validating a Component’s Value
- 8.3.2. Using LongRangeValidator
- 8.4. Referencing a Managed Bean Method
- 8.4.1. Referencing a Method That Performs Navigation
- 8.4.2. Referencing a Method That Handles an Action Event
- 8.4.3. Referencing a Method That Performs Validation
- 8.4.4. Referencing a Method That Handles a Value-Change Event
- 8.1. Using the Standard Converters
- 9. Developing with JavaServer Faces Technology
- 9.1. Managed Beans in JavaServer Faces Technology
- 9.1.1. Creating a Managed Bean
- 9.1.2. Using the EL to Reference Managed Beans
- 9.2. Writing Bean Properties
- 9.2.1. Writing Properties Bound to Component Values
- 9.2.2. Writing Properties Bound to Component Instances
- 9.2.3. Writing Properties Bound to Converters, Listeners, or Validators
- 9.3. Writing Managed Bean Methods
- 9.3.1. Writing a Method to Handle Navigation
- 9.3.2. Writing a Method to Handle an Action Event
- 9.3.3. Writing a Method to Perform Validation
- 9.3.4. Writing a Method to Handle a Value-Change Event
- 9.4. Using Bean Validation
- 9.4.1. Validating Null and Empty Strings
- 9.1. Managed Beans in JavaServer Faces Technology
- 10. JavaServer Faces Technology: Advanced Concepts
- 10.1. The Lifecycle of a JavaServer Faces Application
- 10.1.1. Overview of the JavaServer Faces Lifecycle
- 10.1.2. Restore View Phase
- 10.1.3. Apply Request Values Phase
- 10.1.4. Process Validations Phase
- 10.1.5. Update Model Values Phase
- 10.1.6. Invoke Application Phase
- 10.1.7. Render Response Phase
- 10.2. Partial Processing and Partial Rendering
- 10.3. The Lifecycle of a Facelets Application
- 10.4. User Interface Component Model
- 10.4.1. User Interface Component Classes
- 10.4.2. Component Rendering Model
- 10.4.3. Conversion Model
- 10.4.4. Event and Listener Model
- 10.4.5. Validation Model
- 10.4.6. Navigation Model
- 10.1. The Lifecycle of a JavaServer Faces Application
- 11. Using Ajax with JavaServer Faces Technology
- 11.1. Overview of Ajax
- 11.2. Using Ajax Functionality with JavaServer Faces Technology
- 11.3. Using Ajax with Facelets
- 11.3.1. Using the f:ajax Tag
- 11.4. Sending an Ajax Request
- 11.4.1. Using the event Attribute
- 11.4.2. Using the execute Attribute
- 11.4.3. Using the immediate Attribute
- 11.4.4. Using the listener Attribute
- 11.5. Monitoring Events on the Client
- 11.6. Handling Errors
- 11.7. Receiving an Ajax Response
- 11.8. Ajax Request Lifecycle
- 11.9. Grouping of Components
- 11.10. Loading JavaScript as a Resource
- 11.10.1. Using JavaScript API in a Facelets Application
- 11.10.2. Using the @ResourceDependency Annotation in a Bean Class
- 11.11. The ajaxguessnumber Example Application
- 11.11.1. The ajaxguessnumber Source Files
- 11.11.2. Running the ajaxguessnumber Example
- 11.12. Further Information about Ajax in JavaServer Faces Technology
- 12. Composite Components: AdvancedTopics and Example
- 12.1. Attributes of a Composite Component
- 12.2. Invoking a Managed Bean
- 12.3. Validating Composite Component Values
- 12.4. The compositecomponentlogin Example Application
- 12.4.1. The Composite Component File
- 12.4.2. The Using Page
- 12.4.3. The Managed Bean
- 12.4.4. Running the compositecomponentlogin Example
- 13. Creating CustomUI Components and Other CustomObjects
- 13.1. Determining Whether You Need a Custom Component or Renderer
- 13.1.1. When to Use a Custom Component
- 13.1.2. Component, Renderer, and Tag Combinations
- 13.2. Understanding the Image Map Example
- 13.2.1. Why Use JavaServer Faces Technology to Implement an Image Map?
- 13.2.2. Understanding the Rendered HTML
- 13.2.3. Understanding the Facelets Page
- 13.2.4. Configuring Model Data
- 13.2.5. Summary of the Image Map Application Classes
- 13.3. Steps for Creating a Custom Component
- 13.4. Creating Custom Component Classes
- 13.4.1. Specifying the Component Family
- 13.4.2. Performing Encoding
- 13.4.3. Performing Decoding
- 13.4.4. Enabling Component Properties to Accept Expressions
- 13.4.5. Saving and Restoring State
- 13.5. Delegating Rendering to a Renderer
- 13.5.1. Creating the Renderer Class
- 13.5.2. Identifying the Renderer Type
- 13.6. Implementing an Event Listener
- 13.6.1. Implementing Value-Change Listeners
- 13.6.2. Implementing Action Listeners
- 13.7. Handling Events for Custom Components
- 13.8. Defining the Custom Component Tag in a Tag Library Descriptor
- 13.9. Using a Custom Component
- 13.10. Creating and Using a Custom Converter
- 13.10.1. Creating a Custom Converter
- 13.10.2. Using a Custom Converter
- 13.11. Creating and Using a Custom Validator
- 13.11.1. Implementing the Validator Interface
- 13.11.2. Specifying a Custom Tag
- 13.11.3. Using a Custom Validator
- 13.12. Binding Component Values and Instances to Managed Bean Properties
- 13.12.1. Binding a Component Value to a Property
- 13.12.2. Binding a Component Value to an Implicit Object
- 13.12.3. Binding a Component Instance to a Bean Property
- 13.13. Binding Converters, Listeners, and Validators to Managed Bean Properties
- 13.1. Determining Whether You Need a Custom Component or Renderer
- 14. Configuring JavaServer Faces Applications
- 14.1. Using Annotations to Configure Managed Beans
- 14.1.1. Using Managed Bean Scopes
- 14.2. Application Configuration Resource File
- 14.2.1. Ordering of Application Configuration Resource Files
- 14.3. Configuring Managed Beans
- 14.3.1. Using the managed-bean Element
- 14.3.2. Initializing Properties Using the managed-property Element
- 14.3.3. Initializing Maps and Lists
- 14.4. Registering Application Messages
- 14.4.1. Using FacesMessage to Create a Message
- 14.4.2. Referencing Error Messages
- 14.5. Using Default Validators
- 14.6. Registering a Custom Validator
- 14.7. Registering a Custom Converter
- 14.8. Configuring Navigation Rules
- 14.8.1. To Configure a Navigation Rule
- 14.8.2. Implicit Navigation Rules
- 14.9. Registering a Custom Renderer with a Render Kit
- 14.10. Registering a Custom Component
- 14.11. Basic Requirements of a JavaServer Faces Application
- 14.11.1. Configuring an Application with a Web Deployment Descriptor
- 14.11.2. Configuring Project Stage
- 14.11.3. Including the Classes, Pages, and Other Resources
- 14.1. Using Annotations to Configure Managed Beans
- 15. Java Servlet Technology
- 15.1. What Is a Servlet?
- 15.2. Servlet Lifecycle
- 15.2.1. Handling Servlet Lifecycle Events
- 15.2.2. Handling Servlet Errors
- 15.3. Sharing Information
- 15.3.1. Using Scope Objects
- 15.3.2. Controlling Concurrent Access to Shared Resources
- 15.4. Creating and Initializing a Servlet
- 15.5. Writing Service Methods
- 15.5.1. Getting Information from Requests
- 15.5.2. Constructing Responses
- 15.6. Filtering Requests and Responses
- 15.6.1. Programming Filters
- 15.6.2. Programming Customized Requests and Responses
- 15.6.3. Specifying Filter Mappings
- 15.7. Invoking Other Web Resources
- 15.7.1. Including Other Resources in the Response
- 15.7.2. Transferring Control to Another Web Component
- 15.8. Accessing the Web Context
- 15.9. Maintaining Client State
- 15.9.1. Accessing a Session
- 15.9.2. Associating Objects with a Session
- 15.9.3. Session Management
- 15.9.4. Session Tracking
- 15.10. Finalizing a Servlet
- 15.10.1. Tracking Service Requests
- 15.10.2. Notifying Methods to Shut Down
- 15.10.3. Creating Polite Long-Running Methods
- 15.11. The mood Example Application
- 15.11.1. Components of the mood Example Application
- 15.11.2. Running the mood Example
- 15.12. Further Information about Java Servlet Technology
- 16. Uploading Files with Java Servlet Technology
- 16.1. The @MultipartConfig Annotation
- 16.2. The getParts and getPart Methods
- 16.3. The fileupload Example Application
- 16.3.1. Architecture of the fileupload Example Application
- 16.3.2. Running the fileupload Example
- 17. Internationalizing and Localizing Web Applications
- 17.1. Java Platform Localization Classes
- 17.2. Providing Localized Messages and Labels
- 17.2.1. Establishing the Locale
- 17.2.2. Setting the Resource Bundle
- 17.2.3. Retrieving Localized Messages
- 17.3. Date and Number Formatting
- 17.4. Character Sets and Encodings
- 17.4.1. Character Sets
- 17.4.2. Character Encoding
- 18. Introduction toWeb Services
- 18.1. What Are Web Services?
- 18.2. Types of Web Services
- 18.2.1. “Big” Web Services
- 18.2.2. RESTful Web Services
- 18.3. Deciding Which Type of Web Service to Use
- 19. Building Web Services with JAX-WS
- 19.1. Creating a Simple Web Service and Clients with JAX-WS
- 19.1.1. Requirements of a JAX-WS Endpoint
- 19.1.2. Coding the Service Endpoint Implementation Class
- 19.1.3. Building, Packaging, and Deploying the Service
- 19.1.4. Testing the Methods of a Web Service Endpoint
- 19.1.5. A Simple JAX-WS Application Client
- 19.1.6. A Simple JAX-WS Web Client
- 19.2. Types Supported by JAX-WS
- 19.2.1. Schema-to-Java Mapping
- 19.2.2. Java-to-Schema Mapping
- 19.3. Web Services Interoperability and JAX-WS
- 19.4. Further Information about JAX-WS
- 19.1. Creating a Simple Web Service and Clients with JAX-WS
- 20. Building RESTful Web Services with JAX-RS
- 20.1. What Are RESTful Web Services?
- 20.2. Creating a RESTful Root Resource Class
- 20.2.1. Developing RESTful Web Services with JAX-RS
- 20.2.2. Overview of a JAX-RS Application
- 20.2.3. The @Path Annotation and URI Path Templates
- 20.2.4. Responding to HTTP Methods and Requests
- 20.2.5. Using @Consumes and @Produces to Customize Requests and Responses
- 20.2.6. Extracting Request Parameters
- 20.3. Example Applications for JAX-RS
- 20.3.1. A RESTful Web Service
- 20.3.2. The rsvp Example Application
- 20.3.3. Real-World Examples
- 20.4. Further Information about JAX-RS
- 21. JAX-RS: AdvancedTopics and Example
- 21.1. Annotations for Field and Bean Properties of Resource Classes
- 21.1.1. Extracting Path Parameters
- 21.1.2. Extracting Query Parameters
- 21.1.3. Extracting Form Data
- 21.1.4. Extracting the Java Type of a Request or Response
- 21.2. Subresources and Runtime Resource Resolution
- 21.2.1. Subresource Methods
- 21.2.2. Subresource Locators
- 21.3. Integrating JAX-RS with EJB Technology and CDI
- 21.4. Conditional HTTP Requests
- 21.5. Runtime Content Negotiation
- 21.6. Using JAX-RS With JAXB
- 21.6.1. Using Java Objects to Model Your Data
- 21.6.2. Starting from an Existing XML Schema Definition
- 21.6.3. Using JSONwith JAX-RS and JAXB
- 21.4. The customer Example Application
- 21.4.1. Overview of the customer Example Application
- 21.4.2. The Customer and Address Entity Classes
- 21.4.3. The CustomerService Class
- 21.4.4. The CustomerClientXML and CustomerClientJSON Classes
- 21.4.5. Modifying the Example to Generate Entity Classes from an Existing Schema
- 21.4.6. Running the customer Example
- 21.1. Annotations for Field and Bean Properties of Resource Classes
- 22. Enterprise Beans
- 22.1. What Is an Enterprise Bean?
- 22.1.1. Benefits of Enterprise Beans
- 22.1.2. When to Use Enterprise Beans
- 22.1.3. Types of Enterprise Beans
- 22.2. What Is a Session Bean?
- 22.2.1. Types of Session Beans
- 22.2.2. When to Use Session Beans
- 22.3. What Is a Message-Driven Bean?
- 22.3.1. What Makes Message-Driven Beans Different from Session Beans?
- 22.3.2. When to Use Message-Driven Beans
- 22.4. Accessing Enterprise Beans
- 22.4.1. Using Enterprise Beans in Clients
- 22.4.2. Deciding on Remote or Local Access
- 22.4.3. Local Clients
- 22.4.4. Remote Clients
- 22.4.5. Web Service Clients
- 22.4.6. Method Parameters and Access
- 22.5. The Contents of an Enterprise Bean
- 22.5.1. Packaging Enterprise Beans in EJB JAR Modules
- 22.5.2. Packaging Enterprise Beans in WARModules
- 22.6. Naming Conventions for Enterprise Beans
- 22.7. The Lifecycles of Enterprise Beans
- 22.7.1 The Lifecycle of a Stateful Session Bean
- 22.7.2. The Lifecycle of a Stateless Session Bean
- 22.7.3. The Lifecycle of a Singleton Session Bean
- 22.7.4. The Lifecycle of a Message-Driven Bean
- 22.8. Further Information about Enterprise Beans
- 22.1. What Is an Enterprise Bean?
- 23. Getting Started with Enterprise Beans
- 23.1. Creating the Enterprise Bean
- 23.1.1. Coding the Enterprise Bean Class
- 23.1.2. Creating the converter Web Client
- 23.1.3. Running the converter Example
- 23.2. Modifying the Java EE Application
- 23.2.1. To Modify a Class File
- 23.1. Creating the Enterprise Bean
- 24. Running the Enterprise Bean Examples
- 24.1. The cart Example
- 24.1.1. The Business Interface
- 24.1.2. Session Bean Class
- 24.1.3. The @Remove Method
- 24.1.4. Helper Classes
- 24.1.5. Running the cart Example
- 24.2. A Singleton Session Bean Example: counter
- 24.2.1. Creating a Singleton Session Bean
- 24.2.2. The Architecture of the counter Example
- 24.2.3. Running the counter Example
- 24.3. A Web Service Example: helloservice
- 24.3.1. The Web Service Endpoint Implementation Class
- 24.3.2. Stateless Session Bean Implementation Class
- 24.3.3. Running the helloservice Example
- 24.4. Using the Timer Service
- 24.4.1. Creating Calendar-Based Timer Expressions
- 24.4.2. Programmatic Timers
- 24.4.3. Automatic Timers
- 24.4.4. Canceling and Saving Timers
- 24.4.5. Getting Timer Information
- 24.4.6. Transactions and Timers
- 24.4.7. The timersession Example
- 24.4.8. Running the timersession Example
- 24.5. Handling Exceptions
- 24.1. The cart Example
- 25. A Message-Driven Bean Example
- 25.1. Overview of the simplemessage Example
- 25.2. The simplemessage Application Client
- 25.3. The Message-Driven Bean Class
- 25.3.1. The onMessage Method
- 25.4. Running the simplemessage Example
- 25.4.1. Administered Objects for the simplemessage Example
- 25.4.2. To Run the simplemessage Application Using NetBeans IDE
- 25.4.3. To Run the simplemessage Application Using Ant
- 25.4.4. Removing the Administered Objects for the simplemessage Example
Online LIVE Training Programming Course offered by INCAPROG ONLINE - www.incaprog.com - contacto@incaprog.com - Phone : (954) 727-3141