Desenvolvendo Aplicações J2EE com EJB e JPA

J2EE10g2 - Aplicações J2EE com EJB e JPA


Descrição:

This course teaches the student to develop business tier components by using EJB 3.0 technology, and the persistence tier components by using the JPA (Java Persistence API) entities. It discusses the creation of the session beans, message-driven beans (MDBs), and the entities in detail. The course explores some of the significant EJB 3.0 features, such as Dependency Injection (DI), Interceptors classes and methods, EntityManager, JPQL, and the Query API. In this course, you use JDeveloper 10.1.3.2 to develop the enterprise components, package and generate the relevant deployment descriptors, and deploy the packaged application to Oracle Application Server 10.1.3.1.

Tópicos:
  • Introduction
    • Review of Java EE Architecture
    • Understand Java EE Platform and APIs
    • Overview of Java EE Enterprise JavaBeans Application Architecture
    • Overview of Java Persistence API (JPA)
    • Java EE Web Services Architecture

  • Designing Java EE Applications
    • Defining the MVC Architecture
    • Implementing the User Interface with JSF and Core Java EE Patterns
    • Implementing a Session Facade Pattern
    • Working with Enterprise JavaBean Types
    • Introduction to EJB Metadata Annotations

  • Configuring Data Sources
    • What Is a Data Source?
    • Selecting the Type of Data Source
    • Support for Oracle JDBC in Data Sources
    • Configuring a Managed Data Source
    • Configuring a Native Data Source
    • Configuring a Connection Pool
    • Setting the Connection Pool Properties

  • Creating Business Logic with Session Beans
    • Stateless Versus Stateful Session Beans
    • Life Cycle of a Stateless Session Bean
    • Elements of a Stateless Session Bean
    • Analyzing the Remote and Local Interfaces
    • Life Cycle of a Stateful Session Bean
    • Passivation and Activation Concepts
    • Interceptor Methods and Classes

  • Accessing Resources with JNDI and Dependency Injection
    • Referencing Java EE Resources with JNDI
    • Referencing a Local Session EJB with JNDI
    • Types of Dependency Injection
    • Referencing EJBs with Dependency Injection
    • JNDI State Replication
    • Working with JNDI Enhancements in OC4J
    • Enabling Global JNDI Lookup

  • Implementing Persistence with JPA Entities
    • Domain Modeling with Entities
    • Managing Persistence of Entities
    • Mapping Entities
    • Mapping Inheritance
    • Mapping Relationships Between Entities
    • Managing Entities
    • Specifying Entity Identity

  • Manipulating JPA Entities with the EntityManager API
    • Managing an Entity Life Cycle with EntityManager
    • Creating a Container-Managed EntityManager Instance
    • Creating an Application-Managed EntityManager Instance
    • Commonly Used Methods in the EntityManager Interface
    • Insert, Delete, Update and Synchronize the Entity with the Database
    • What Is the JPA Query API
    • Retrieving Entities by Using the Query API

  • Writing Java Persistence Query Language (JPQL) Statements
    • Writing Basic JPQL Statements
    • Adding Conditions to a JPQL Query
    • Using Multivalued Expressions and Operators
    • Using JPQL Functions
    • Implementing Subqueries
    • Implementing Joins Between Entities
    • Bulk Updates and Deletes in JPQL
    • Native SQL Queries Implementation in JPQL

  • Asynchronous Communication with Message-Driven Beans
    • Using Java Message Service Interfaces
    • Configuring Java Message Service
    • Life Cycle of a Message-Driven Bean
    • Creating a Message-Driven Bean
    • Creating a JMS/MDB Client

  • Managing Transactions with Session and Message-Driven Beans
    • EJB Transaction Model
    • Types of Transaction Management
    • Container-Managed Transactions
    • Bean-Managed Transactions
    • Local and Global Transactions
    • Configuring the Transaction Manager in OC4J
    • JTA: UserTransaction Interface

  • Exposing Session Beans as Web Services
    • Identifying Web Service Standards
    • Communication with SOAP
    • Web Services Description Language (WSDL)
    • Web Service Development Approach
    • Creating the Service Endpoint Interface
    • Creating the Endpoint Class (Session Bean)

  • Securing Java EE Applications with JAAS
    • Java Authentication and Authorization Service (JAAS)
    • JAAS Provider Types in OC4J
    • Configuring Security
    • Defining and Using Logical Roles in Web Applications (web.xml)
    • Defining and Using Logical Roles in EJBs (ejb-jar.xml)
    • Programmatic Access to a Caller’s Security Context
    • EJB Security Roles

  • Deploying Java EE Applications
    • Planning Application Deployment
    • Creating Web Application Archives
    • Creating EJB Archives
    • Working with Deployment Descriptors
    • Creating a JSR-88 Deployment Plan
    • Deploying Entities


Duração: 3 dias

Red Hat
Oracle
SAP
Furukawa
Prometric