Fast Track to EJB 3.0 and the JPA Using JBoss

Similar documents
Web Application Development Using JEE, Enterprise JavaBeans and JPA

Web Application Development Using JEE, Enterprise JavaBeans and JPA

"Charting the Course... Mastering EJB 3.0 Applications. Course Summary

Chapter 1 Introducing EJB 1. What is Java EE Introduction to EJB...5 Need of EJB...6 Types of Enterprise Beans...7

Java EE 7: Back-End Server Application Development

Enterprise JavaBeans, Version 3 (EJB3) Programming

CO Java EE 7: Back-End Server Application Development

JVA-163. Enterprise JavaBeans

Table of Contents EJB 3.1 and JPA 2

CO Java EE 6: Develop Database Applications with JPA

Java- EE Web Application Development with Enterprise JavaBeans and Web Services

Fast Track to EJB 3.0

Pro JPA 2. Mastering the Java Persistence API. Apress* Mike Keith and Merrick Schnicariol

Java EE 6: Develop Business Components with JMS & EJBs

Enterprise JavaBeans 3.1

J2EE - Version: 25. Developing Enterprise Applications with J2EE Enterprise Technologies

Spring & Hibernate. Knowledge of database. And basic Knowledge of web application development. Module 1: Spring Basics

foreword to the first edition preface xxi acknowledgments xxiii about this book xxv about the cover illustration

Introduction to Web Application Development Using JEE, Frameworks, Web Services and AJAX

V3 EJB Test One Pager

Deccansoft Software Services. J2EE Syllabus

Oracle - Developing Applications for the Java EE 7 Platform Ed 1 (Training On Demand)

Fast Track to Java EE

Developing Applications with Java EE 6 on WebLogic Server 12c

Web Application Development Using Spring, Hibernate and JPA

object/relational persistence What is persistence? 5

Java Enterprise Edition

Web Application Development Using Spring, Hibernate and JPA

Implementing a Web Service p. 110 Implementing a Web Service Client p. 114 Summary p. 117 Introduction to Entity Beans p. 119 Persistence Concepts p.

EJB ENTERPRISE JAVA BEANS INTRODUCTION TO ENTERPRISE JAVA BEANS, JAVA'S SERVER SIDE COMPONENT TECHNOLOGY. EJB Enterprise Java

Web Application Development Using Spring, Hibernate and JPA

JAVA COURSES. Empowering Innovation. DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP

Java EE Application Assembly & Deployment Packaging Applications, Java EE modules. Model View Controller (MVC)2 Architecture & Packaging EJB Module

Deployment. See Packaging and deployment processes

Oracle 10g: Build J2EE Applications

Call: JSP Spring Hibernate Webservice Course Content:35-40hours Course Outline

OracleAS 10g R3: Build J2EE Applications II

Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1

New Features in EJB 3.1

Courses For Event Java Advanced Summer Training 2018

Business Component Development with EJB Technology, Java EE 5

Java SE 8 Fundamentals

ADVANCED JAVA TRAINING IN BANGALORE

JVA-563. Developing RESTful Services in Java

Practice Test. Oracle 1z Java Enterprise Edition 5 Business Component Developer Certified Professional Upgrade Exam. Version: 14.

Call: Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline

Building the Enterprise

Chapter 6 Enterprise Java Beans

Java J Course Outline

Java SE7 Fundamentals

Leverage Rational Application Developer v8 to develop Java EE6 application and test with WebSphere Application Server v8

J2EE Development. Course Detail: Audience. Duration. Course Abstract. Course Objectives. Course Topics. Class Format.

Component-Based Software Engineering. ECE493-Topic 5 Winter Lecture 26 Java Enterprise (Part D)

Lightweight J2EE Framework

SCBCD EXAM STUDY KIT. Paul Sanghera CX JAVA BUSINESS COMPONENT DEVELOPER CERTIFICATION FOR EJB MANNING. Covers all you need to pass

POJOs in Action DEVELOPING ENTERPRISE APPLICATIONS WITH LIGHTWEIGHT FRAMEWORKS CHRIS RICHARDSON MANNING. Greenwich (74 w. long.)

CMP 436/774. Introduction to Java Enterprise Edition. Java Enterprise Edition

Overview p. 1 Server-side Component Architectures p. 3 The Need for a Server-Side Component Architecture p. 4 Server-Side Component Architecture

Index. setmaxresults() method, 169 sorting, 170 SQL DISTINCT query, 171 uniqueresult() method, 169

Web Design and Applications

Developing Enterprise JavaBeans for Oracle WebLogic Server 12c (12.2.1)

Course: JBoss Training: JBoss AS 7 and JBoss EAP 6 Administration and Clustering Training

NetBeans IDE Field Guide

Borland Application Server Certification. Study Guide. Version 1.0 Copyright 2001 Borland Software Corporation. All Rights Reserved.

Object-relational mapping EJB and Hibernate

POJOs to the rescue. Easier and faster development with POJOs and lightweight frameworks

~ Ian Hunneybell: CBSD Revision Notes (07/06/2006) ~

Fast Track to Spring 3 and Spring MVC / Web Flow

IBM. Enterprise Application Development with IBM Web Sphere Studio, V5.0

SUN Sun Cert Bus Component Developer Java EE Platform 5, Upgrade. Download Full Version :

JVA-117A. Spring-MVC Web Applications

JBOSS AS 7 AND JBOSS EAP 6 ADMINISTRATION AND CLUSTERING (4 Days)

Architect Exam Guide. OCM EE 6 Enterprise. (Exams IZO-807,1ZO-865 & IZO-866) Oracle Press ORACLG. Paul R* Allen and Joseph J.

find() method, 178 forclass() method, 162 getcurrentsession(), 16 getexecutablecriteria() method, 162 get() method, 17, 177 getreference() method, 178


Services Oriented Architecture and the Enterprise Services Bus

Administering the JBoss 5.x Application Server

Introduction to Messaging using JMS

Oracle Exam 1z0-895 Java EE 6 Enterprise JavaBeans Developer Certified Expert Exam Version: 14.0 [ Total Questions: 90 ]

Migrating traditional Java EE applications to mobile

Exam Questions 1Z0-895

The Good, the Bad and the Ugly

these methods, remote clients can access the inventory services provided by the application.

ENTERPRISE beans are the J2EE components that implement Enterprise Java-

com Spring + Spring-MVC + Spring-Boot + Design Pattern + XML + JMS Hibernate + Struts + Web Services = 8000/-

Java EE Architecture, Part Three. Java EE architecture, part three 1(57)

Module 8 The Java Persistence API

Hibernate Interview Questions

Spring Persistence. with Hibernate PAUL TEPPER FISHER BRIAN D. MURPHY

1Z Oracle. Java Enterprise Edition 5 Business Component Developer Certified Professional Upgrade

Seam & Web Beans. Pete Muir JBoss, a division of Red Hat.

Chapter 6 Object Persistence, Relationships and Queries

Java Advance Frameworks

A COMPONENT BASED ONLINE ORDERING SYSTEM USING ENTERPRISE JAVABEANS 3.0

Oracle EXAM - 1Z Java EE 6 Enterprise JavaBeans Developer Certified Expert Exam. Buy Full Product.

Introducing EclipseLink: The Eclipse Persistence Services Project

Seam 3. Pete Muir JBoss, a Division of Red Hat

133 July 23, :01 pm

SUN Sun Certified Enterprise Architect for J2EE 5. Download Full Version :

Socket attaches to a Ratchet. 2) Bridge Decouple an abstraction from its implementation so that the two can vary independently.

Transcription:

Fast Track to EJB 3.0 and the JPA Using JBoss The Enterprise JavaBeans 3.0 specification is a deep overhaul of the EJB specification that is intended to improve the EJB architecture by reducing its complexity from the developer's point of view. It leverages annotations (introduced in Java 5) and Object-Relational Mapping (ORM) technologies to eliminate the dependence on complex EJB APIs, allow POJO (Plain Old Java Object) based development, and provide an effective technology for creating distributed, transactional components, and for mapping relational data to an object schema. This course provides thorough coverage of the EJB3 technology including new concepts such as the use of annotations and the use of Dependency Injection to initialize references. This course also includes in-depth coverage of managing persistence using the Java Persistence API (JPA). It uses hands-on labs and a well-paced approach to make this complex technology understandable in an accelerated fashion. You will come away with a comprehensive understanding of EJB and the important issues that need to be considered to use it in real world applications. Audience: Java developers who want to use EJB3. Prerequisites: One year of Java programming experience (or equivalent) is preferred. Knowledge of relational databases and JDBC is strongly recommended. Number of Days: 4 days 1. Overview What is EJB? EJB Goals Types of Enterprise JavaBeans Java Persistence API EJB and Java EE (Enterprise Editions) EJB in Java EE Architecture SOA and EJB SOA with Web Services and EJB 2. EJB 3.0 EJB 3.0 Overview EJB 2.X Problems EJB 3.0 Goals Session Bean Usage Persistent Entity Usage MDB Usage 3. Session Bean Overview What are Session Beans? Stateless Session Beans (SLSB) Stateful Session Beans (SFSB) Session Bean can be Distributed Defining a Session Bean Stateless Session Bean Definition Calculator Remote Business Interface Remote and Local Business Interfaces Calculator Bean Local Business Interface A Brief Note on Annotations How Annotations Work Annotation Definition Using Annotations What Else is Needed? 4. Packaging and Deployment J2EE Packaging EJB-JAR File Deployment Descriptor (DD) Deployment Descriptors in EJB 3 EJB-JAR File Structure Enterprise Archive (EAR File) application.xml File Server Deployment EJB Container The EJB Container Server Deployment 5. JNDI Overview How do Remote Clients get EJB Access? ITCourseware, LLC 1

JNDI Java Naming and Directory Interface EJB Container Binds a Reference into JNDI Client Looks up Reference in JNDI JNDI Tree Structure JNDI API Overview JNDI API The Interface The Initial Class Specifying the Initial Properties Using JNDI 6. EJB Client Client View of a Session Bean Client Invocation of a Session EJB PortableRemoteObject and Casting Running a Client 7. Dependency Injection Dependency Injection The JavaTunes Online Music Store An EJB Referencing Another EJB CatalogMaintenance Injection of CatalogMaintenance What is Happening 8. Deployment Descriptors More About Deployment Descriptors The XML Deployment Descriptor 9. The EJB Environment Issues with Obtaining Resources Referencing Resources External to EAR Reference & Deployment Descriptor Usage Resolving a JNDI Name Simple Environment Entries Declaring Simple Environment Entries Setter Injection Resource Manager Connection Factories More on the Enterprise Bean Environment The Environment is a Level of Indirection Looking up Resources in the Environment Looking up via EJB Looking up via JNDI API More on the @Stateless Annotation More on the @EJB Annotation More on the @Resource Annotation Deployment Descriptor vs Annotation 10. Stateless Session Bean Lifecycle & Interceptors Stateless Session Bean State Diagram Lifecycle of SSB Client Call of a Stateless SB Method Interceptors Business Method Interceptors Invocation Interface Details Interceptor Method Details Interceptor Class Using Interceptor Classes Method Level Interceptors Lifecycle Callback Interceptors Lifecycle Interceptor in the Bean Class Lifecycle Interceptor in a Separate Class 11. Stateful Session Beans Stateful Session Bean (SFSB) Overview Coding a Stateful Session Bean Stateful Session Bean Clients Stateful Session Bean Removal Stateful Session Passivation/Activation When to Use Stateful Session Beans @PrePassivate and @PostActivate Callbacks Stateful Session Bean State Diagram 12. The Timer Service Bean Requirements The javax.ejb.timer Interface The javax.ejb.timerservice Interface How the Timer Works Issues with Using the Timer Service 13. Overview of Messaging Systems What is Messaging? Loose Coupling When is Messaging Used? Two Messaging Models Publish/Subscribe Illustrated More on Publish/Subscribe Point-to-Point Illustrated More on Point-to-Point (P2P) Message Delivery Push versus Pull 14. Overview of JMS API What is Java Message Service? ITCourseware, LLC 2

API Structure JMS Interfaces Administered Objects Administered Objects and JNDI Illustrated Client Workflow Synchronous Queue Consumer Client Asynchronous Queue Consumer Client JMS Message Types Message Header Fields 15. Message-Driven Beans J2EE Message Producers and Consumers Message-Driven Bean (MDB) Overview Goals of Message-Driven Beans MDB Consumption of a Message @MessageDriven Details Activation Configuration Properties Specifying a Destination for an MDB Specifying a Destination Using a DD 16. Message-Driven Bean Lifecycle Lifecycle Overview MDB State Diagram Interceptor Methods 17. Transaction Definition Transaction Overview Transaction Lifecycle Transactions Clarify Systems 18. Transactional System Overview Overview of a Transactional System Transactional System Components Transactional Object EJB Transaction Support 19. Transactions in EJB EJB Declarative Transaction Management Transactional Scope EJB Transaction Attributes Specifying Transaction Attributes NOTSUPPORTED SUPPORTS REQUIRED REQUIRESNEW MANDATORY NEVER Beans Have a Say in Transactions Beans can be Notified of Transaction Status Transaction Attributes Some Choices Explicit/Bean-Managed Transactions Transaction Isolation Levels Multi-Process TX and Two Phase Commit 20. Security in EJB Security Requirements J2EE Security Roles J2EE Security Overview EJB Security Overview Authentication Programmatic Security Transport Level Security with SSL 21. Exception Handling Overview of Exceptions Exception Hierarchy Application Exceptions in EJB Defining Application Exceptions Container Handling of Application Exception Bean Throwing of Application Exception Client Handling of Application Exceptions System Exceptions Indicate Failure Container Handling of System Exception Client Handling of System Exceptions 22. EJB 3 Best Practices When to Use EJB Keep Business Interfaces Coarse Grained Session Façade Structure Use Container-Managed Transactions Transaction Duration Local and Remote Business Interface Tuning Session Bean Tuning Clustering Clustering Session Beans 23. JPA Overview The Issues with Persistence Layers Object-Relational Mapping (ORM) Issues ITCourseware, LLC 3

Issues with JDBC Alone Java Persistence API Overview JPA Benefits Java Persistence Environments 24. Mapping a Simple Class Entity Classes Entity Class Requirements The Entity Declaration The Event Class The Id Property Field Access or Property Access The EVENTS Table Generated Id Property Mapping Properties Basic Mapping Types Persisting to the Database 25. Entity Manager and Persistence The Entity Manager & Persistence The EntityManager The EntityManager Interface Persistence Unit Injecting an EntityManager Retrieving Persistent Objects Container-Managed Entity Manager The Persistence Unit persistence.xml 26. Inserting and Updating Transient, Persistent, Detached Instances Removed Instances Persisting a New Entity Synchronization to the Database Updating a Persistent Instance Detached Entities 27. Querying and Java Persistence Query Language (JPQL) Java Persistence Query Language JPQL Basics Executing a Query Where Clause Query Parameters Using Query Parameters Named Queries 28. Versioning/Optimistic Locking Optimistic Locking Using a Detached Instance Versioning Version Property in Java Class Locking Objects Lock Modes 29. Entity Relationships Relationships Overview Object Relationships Characteristics of Relationships Directionality Characteristics of Relationships 30. Mapping Relationships Mappings Overview Unidirectional Many-To-One Relationship The Table Structure Many-To-One The Owning Side @JoinColumn Bidirectional One-To-One Relationship Using the Relationship More on the Inverse Side Bidirectional One-To-Many Relationship Mapping the One-To-Many Relationship Other Collection Types Many-To-Many Relationship Defining Many-To-Many Relationship Mapping Many-To-Many Relationships Specifying the Join Table Lazy and Eager Loading Cascading Operations The Cascade Element Queries Across Relationships OUTER and FETCH JOIN 31. Mapping Inheritance Entity Inheritance Details of Entity Inheritance Single-Table Strategy Entity Definitions for Single-Table Single Table: Pros and Cons Joined (Table per Subclass) Entity Definitions for Joined Joined: Pros and Cons Table per Concrete Class 32. Embedded Objects ITCourseware, LLC 4

Using Embedded Objects Embeddable Class Reusing Embeddable Classes Overriding Embedded Class Attributes Compound Primary Keys Compound Key with Embedded Id Class Using an Embedded Id Class Compound Key with ID Class 33. Additional Java Persistence Capabilities More on Querying Projection Queries Aggregate Queries Bulk Update and Delete Native SQL Queries 34. Extended Persistence s Stateful Session Beans with Entity State Extended Persistence context Issues with Extended Persistence 35. XML Mapping Files XML Mapping Files A Simple Entity Class JPA XML Mapping File JPA XML Mapping File Mapping Entities JPA XML Mapping File Named Queries 36. Java Persistence with Java SE Using JPA with Java SE Java SE APIs 37. Java Persistence Best Practices Primary Key Considerations Use Named Queries Use Lazy/Eager Loading Appropriately Be Aware of Transaction Semantics Encapsulate JPA Code Use Report Queries Where Applicable Optimize Read-Only/Mostly Data Access Paging Data Consider Going Outside of Java Persistence Know Your Provider Implementation ITCourseware, LLC 5