Curso Java EJB 3.0 Programming

  • Development

Curso Java EJB 3.0 Programming

24 horas
Visão Geral

Este Curso Java EJB 3.0 Programming oferece cobertura completa da tecnologia EJB3 – apresentada de maneira clara e eficaz. Ele começa com os conceitos básicos e APIs de EJB e continua com tópicos complexos, como beans e transações orientados a mensagens. Novos conceitos, como o uso de anotações e o uso de Injeção de Dependência para inicializar referências, são abordados em profundidade. O curso também inclui uma sólida introdução ao desenvolvimento de entidades persistentes usando a Java Persistence API (JPA). O curso usa laboratórios práticos e uma abordagem bem ritmada para tornar essa tecnologia complexa compreensível de forma acelerada. Você terá um entendimento abrangente do EJB e das questões importantes que precisam ser consideradas para usá-lo em aplicativos do mundo real. Oferecemos este curso usando o Glassfish ou JBoss IDE.

Este Curso Java EJB 3.0 Programming. Enterprise JavaBean abrange tópicos essenciais da tecnologia EJB3 desde conceitos básicos até os complexos. A especificação Enterprise JavaBeans 3.0 é uma revisão profunda da especificação EJB que visa melhorar a arquitetura EJB reduzindo sua complexidade do ponto de vista do desenvolvedor. Ele aproveita as tecnologias de anotações (introduzidas no Java 5) e mapeamento de objetos relacionais (ORM) para eliminar a dependência de APIs EJB complexas, permite o desenvolvimento baseado em POJO (Plain Old Java Object) e fornece uma tecnologia eficaz para criar componentes transacionais distribuídos, e para mapear dados relacionais para um esquema de objeto.

Publico Alvo
  • Desenvolvedores Java que desejam utilizar EJB3.
Materiais
Inglês/Português/Lab Prático
Conteúdo Programatico

Java EJB 3.0 Overview

  1. What is EJB?
  2. EJB Goals
  3. Types of Enterprise JavaBeans
  4. Java Persistence API
  5. EJB and Java EE (Enterprise Editions)
  6. EJB in Java EE Architecture
  7. SOA and EJB
  8. SOA with Web Services and EJB
  9. EJB 3.0
  10. EJB 3.0 Overview
  11. EJB 2.X Problems
  12. EJB 3.0 Goals

Session Bean Usage

  1. Persistent Entity Usage
  2. MDB Usage
  3. Session Bean Overview
  4. What are Session Beans?
  5. Stateless Session Beans (SLSB)
  6. Stateful Session Beans (SFSB)
  7. Session Bean can be Distributed
  8. Defining a Session Bean
  9. Stateless Session Bean Definition
  10. Calculator Remote Business Interface
  11. Remote and Local Business Interface
  12. Calculator Bean Local Business Interface
  13. A Brief Note on Annotations
  14. How Annotations Work
  15. Annotation Definition
  16. Using Annotations
  17. What Else is Needed?

Packaging and Deployment

  1. J2EE Packaging
  2. EJB-JAR File
  3. Deployment Descriptor (DD)
  4. Deployment Descriptors in EJB 3
  5. EJB-JAR File Structure
  6. Enterprise Archive (EAR File)
  7. application.xml File
  8. Server Deployment
  9. EJB Container
  10. The EJB Container
  11. Server Deployment

JNDI Overview

  1. How do Remote Clients get EJB Access?
  2. JNDI – Java Naming and Directory Interface
  3. EJB Container Binds a Reference into JNDI
  4. Client Looks up Reference in JNDI
  5. JNDI Tree Structure
  6. JNDI API
  7. The Context Interface
  8. The InitialContext Class
  9. Specifying the InitialContext Properties
  10. Using JNDI
  11. EJB Client
  12. Client View of a Session Bean
  13. Client Invocation of a Session EJB
  14. PortableRemoteObject and Casting
  15. Running a Client

Dependency Injection

  1. Dependency Injection
  2. The JavaTunes Online Music Store
  3. An EJB Referencing Another EJB
  4. CatalogMaintenance
  5. Injection of CatalogMaintenance
  6. What is Happening

Deployment Descriptors

  1. More about Deployment Descriptors
  2. The XML Deployment Descriptor

The EJB Environment

  1. Issues with Obtaining Resources
  2. Referencing Resources External to EAR
  3. Reference and Deployment Descriptor Usage
  4. Resolving a JNDI Name
  5. Simple Environment Entries
  6. Declaring Simple Environment Entries
  7. Setter Injection
  8. Resource Manager Connection Factories
  9. More on the Enterprise Bean Environment
  10. The Environment is a Level of Indirection
  11. Looking up Resources in the Environment
  12. Looking up via EJBContext
  13. Looking up via JNDI API
  14. More on the @Stateless Annotation
  15. More on the @EJB Annotation
  16. More on the @Resource Annotation
  17. Deployment Descriptor vs Annotation

Stateless Session Bean Lifecycle and Interceptors

  1. Stateless Session Bean State Diagram
  2. Lifecycle of SSB
  3. Client Call of a Stateless SB Method
  4. Interceptors
  5. Business Method Interceptors
  6. InvocationContext Interface Details
  7. Interceptor Method Details
  8. Interceptor Class
  9. Using Interceptor Classes
  10. Method Level Interceptors
  11. Lifecycle Callback Interceptors
  12. Lifecycle Interceptor in the Bean Class
  13. Lifecycle Interceptor in a Separate Class
  14. Stateful Session Beans
  15. Stateful Session Bean (SFSB) Overview
  16. Coding a Stateful Session Bean
  17. Stateful Session Bean Clients
  18. Stateful Session Bean Removal
  19. Stateful Session Passivation/Activation
  20. When to Use Stateful Session Beans
  21. @PrePassivate and @PostActivate Callbacks
  22. Stateful Session Bean State Diagram

The Timer Service

  1. Bean Requirements
  2. The javax.ejb.Timer Interface
  3. The javax.ejb.TimerService Interface
  4. How the Timer Works
  5. Issues with Using the Timer Service

Overview of Messaging Systems

  1. What is Messaging?
  2. Loose Coupling
  3. When is Messaging Used?
  4. Two Messaging Models
  5. Publish/Subscribe – Illustrated
  6. More on Publish/Subscribe
  7. Point-to-Point – Illustrated
  8. More on Point-to-Point (P2P)
  9. Message Delivery – Push versus Pull

Overview of JMS API

  1. What is Java Message Service?
  2. API Structure
  3. JMS Interfaces
  4. Administered Objects
  5. Administered Objects and JNDI – Illustrated
  6. Client Workflow
  7. Synchronous Queue Consumer Client
  8. Asynchronous Queue Consumer Client
  9. JMS Message Types
  10. Message Header Fields

Message-Driven Beans

  1. J2EE Message Producers and Consumers
  2. Message-Driven Bean (MDB) Overview
  3. Goals of Message-Driven Beans
  4. MDB Consumption of a Message
  5. @MessageDriven Details
  6. Activation Configuration Properties
  7. Specifying a Destination for an MDB
  8. Specifying a Destination Using a DD

Message-Driven Bean Lifecycle

  1. Lifecycle Overview
  2. MDB State Diagram
  3. Interceptor Methods

Transaction Definition

  1. Transaction Overview
  2. Transaction Lifecycle
  3. Transactions Clarify Systems

Transactional System Overview

  1. Transactional System Components
  2. Transactional Object
  3. EJB Transaction Support

Transactions in EJB

  1. EJB Declarative Transaction Management
  2. Transactional Scope
  3. Specifying Transaction Attributes
  4. NOTSUPPORTED
  5. SUPPORTS
  6. REQUIRED
  7. REQUIRESNEW
  8. MANDATORY
  9. NEVER
  10. Beans Have a Say in Transactions
  11. Beans can be Notified of Transaction Status
  12. Transaction Attributes – Some Choices
  13. Explicit/Bean-Managed Transactions
  14. Transaction Isolation Levels
  15. Multi-Process TX and Two Phase Commit

Security in EJB

  1. Security Requirements
  2. J2EE Security
  3. Roles
  4. J2EE Security Overview
  5. EJB Security Overview
  6. Authentication
  7. Programmatic Security
  8. Transport Level Security with SSL

Exception Handling

  1. Exception Hierarchy
  2. Application Exceptions in EJB
  3. Defining Application Exceptions
  4. Container Handling of Application Exception
  5. Bean Throwing of Application Exception
  6. Client Handling of Application Exceptions
  7. System Exceptions Indicate Failure
  8. Container Handling of System Exception
  9. Client Handling of System Exceptions

EJB 3 Best Practices

  1. When to Use EJB
  2. Keep Business Interfaces Coarse Grained
  3. Session Façade Structure
  4. Use Container-Managed Transactions
  5. Transaction Duration
  6. Local and Remote Business Interface
  7. Tuning
  8. Session Bean Tuning
  9. Clustering
  10. Clustering Session Beans

JPA Overview

  1. The Issues with Persistence Layers
  2. Object-Relational Mapping (ORM) Issues
  3. Issues with JDBC Alone
  4. Java Persistence API Overview
  5. JPA Benefits
  6. Java Persistence Environments

Mapping a Simple Class

  1. Entity Classes
  2. Entity Class Requirements
  3. The Entity Declaration
  4. The Event Class
  5. The Id Property
  6. Filed Access or Property Access
  7. The EVENTS Table
  8. Generated Id Property
  9. Mapping Properties
  10. Basic Mapping Types
  11. Persisting to the Database

Entity Manager and Persistence Context

  1. The Entity Manager and Persistence Context
  2. The EntityManager
  3. The EntityManager Interface
  4. Persistence Unit
  5. Injecting an EntityManager
  6. Retrieving Persistent Objects
  7. Container-Managed Entity Manager
  8. The Persistence Unit
  9. persistence.xml

Inserting and Updating

  1. Transient, Persistent, Detached Instances
  2. Removed Instances
  3. Persisting a New Entity
  4. Synchronization to the Database
  5. Updating a Persistent Instance

Querying and Java Persistence Query Language (JPQL)

  1. Java Persistence Query Language
  2. Executing a Query
  3. Where Clause
  4. Query Parameters
  5. Using Query Parameters
  6. Named Queries

Mapping Relationships

  1. Object Relationships
  2. Mappings Overview
  3. Unidirectional Many-To-One Relationship
  4. The Table Structure – Many-To-One
  5. The Owning Side
  6. @JoinColumn
  7. Bidirectional One-To-Many Relationship
  8. Mapping the One-To-Many Relationship
  9. Using the Relationship
  10. More on the Inverse Side
  11. Other Types of Relationships
  12. Lazy and Eager Loading
  13. Cascading Operations
  14. Queries Across Relationships

Mapping Inheritance

  1. Entity Inheritance
  2. Details of Entity Inheritance
  3. Joined (Table per Subclass)
  4. Entity Definitions for Joined
  5. Joined: Pros and Cons
  6. Single Table Mapping Strategy
  7. Table per Concrete Class

Versioning

  1. Optimistic Locking / Detached Instances
  2. Versioning

More on Querying

  1. Projection Queries
  2. Aggregate Queries
  3. Bulk Update and Delete
  4. Native SQL Queries

Embedded Objects

  1. Using Embedded Objects
  2. Embeddable Class

Java Persistence with Java SE

  1. Using JPA with Java SE
  2. Java SE APIs
TENHO INTERESSE

Cursos Relacionados

Curso Python Programação Advanced

32 horas

Curso SAP ABAP S4hana Developer Foundation

32 horas

Curso Full Stack and React Essentials

32 Horas

Curso Node.js for JavaScript Developers

24 horas

Curso Elasticsearch for Developers

16H

Curso Elastic Stack Foundation

24 horas

Curso Apache Spark™ Foundation

8 Horas