Your privacy matters: This site uses cookies to analyze site usage and provide social media features. Learn More.

Introduction to EJB

EJB-100 (4 Days)
4.36 out of 5 (38 reviews)  

Request Pricing

Enterprise JavaBeans (EJB) Training Overview

Introduction to EJB teaches attendees the skills they need to successfully develop all types of Enterprise JavaBeans, including session beans, entity beans, and message-driven beans. This course is taught using the EJB 3.1 framework.

Location and Pricing

Most Accelebrate courses are delivered as private, customized, on-site training at our clients' locations worldwide for groups of 3 or more attendees and are custom tailored to their specific needs. Please visit our client list to see organizations for whom we have delivered private in-house training. These courses can also be delivered as live, private online classes for groups that are geographically dispersed or wish to save on the instructor's or students' travel expenses. To receive a customized proposal and price quote for private training at your site or online, please contact us.

In addition, some courses are available as live, online classes for individuals. See a schedule of online courses.

Enterprise JavaBeans (EJB) Training Objectives

  • Understand the role of EJB in the broader Java EE platform.
  • Describe the features that are implemented by an EJB container on behalf of application components.
  • Build stateless session beans as part of a service layer or SOA.
  • Build JPA entities to represent persistent data records within the Java application.
  • Develop systems of entities to manage complex data models including 1:1, 1:N, and N:N associations.
  • Manage transactional behavior of the application through declarative and programmatic techniques.
  • Invoke EJB sessions from Java web applications.
  • Use dependency injection and JNDI names to assemble complex web/EJB systems with minimal fuss and maximal flexibility.
  • Implement message-driven beans to process queued messages asynchronously.

Enterprise JavaBeans (EJB) Training Outline

Expand All | Collapse All | Printer-Friendly

Introduction
  • Overview of EJB and Java Persistence API (JPA)
    • Goals of EJB, EJB in the Java EE architecture
  • EJB 3.1 Overview
    • Session Beans, Persistent Entities, Message Driven Beans
Session Beans
  • Session Bean Overview
    • Services provided, Stateless and Stateful Beans
    • Defining a Session Bean - EJB 3 Annotations
    • The Bean Implementation, Remote and Local Business Interface
  • Packaging and Deployment
    • ejb-jar file, Deployment Descriptors in EJB 3
    • EAR file
    • The EJB Container
  • JNDI Overview
    • Distributed Naming and Lookup
    • Context and InitialContext
    • Using JNDI
  • Writing an EJB 3 Client
    • Client View of a Session Bean
    • PortableRemoteObject and Casting
    • Running the Client
Additional Capabilities
  • Resources and Dependency Injection
    • EJB referencing another EJB
    • Referencing Resources, Environment Entries
    • Connection Factories (DataSource and others)
  • Session Bean Lifecycle and Interceptors
    • Stateless Session Bean Lifecycle
    • Business Method Interceptors, InvocationContext, Lifecycle Callback Interceptors, Interceptor Classes
  • Stateful Session Beans
    • Overview
    • Defining, Client Relationship
    • Lifecycle, Activation, Passivation
  • Timer Service
    • Overview and usage
Message-Driven Beans
  • Overview of Messaging Systems
    • Messaging, Loose Coupling
    • Pub/Sub, Point2Poin
  • Overview of JMS API
    • Overview and Structure
    • ConnectionFactory and Destination
    • JMS Producer and Consumer Client example
    • JMS Messages
  • Message-Driven Beans (MDB)
    • Overview and Goals
    • @MessageDriven and MDB example
    • Configuring with activationConfig
    • State Diagram and Interceptors
Transactions and Security
  • Overview of Transactions and Transactional Systems
    • ACID, Tx Lifecycle, Tx Manager, Transactional Objects
  • Transactions in EJB 3
    • Declarative Transaction Management
    • Transaction Attributes and Transactional Scope
    • Transaction Scenarios and Bean-Managed Tx
  • Security
    • Java EE Security Overview (Role-based)
    • @RolesAllowed, @PermitAll
    • Programmatic Security
Exceptions
  • Exception Overview
    • Checked and Unchecked Exceptions
  • Exceptions in EJB 3
    • Application Exceptions, System Exceptions
  • EJB 3 Best Practices
    • When to Use, Coarse-Grained Business Interfaces, Session Facade, Transaction Guidelines, Clusterin
Introduction to Java Persistence API (JPA)
  • Overview
    • Persistence Layers, Object-Relational Mapping (ORM), JDBC
    • JPA Overview
  • Mapping with JPA
    • Entities and @Entity, ids and @Id
    • Generated Id Values
    • Basic Mapping Types
  • EntityManager
    • Persisting to the DB, the EntityManager,
    • Persistence Units and Configuration
    • Injecting an EntityManager
    • Retrieving Persistent Entities
Updates and Queries
  • Inserting and Updating
    • Transient, Persistent, Detached, Removed
    • Persisting new Entities, Updating a Persistent Instance
  • Querying and JPQL
    • Object Based Queries, Select statements, WHERE clause
    • Named Queries
  • Versioning and Optimistic Locking
    • Detached Instances
    • Versioning and Optimistic Locking in EJB 3
Entity Relationships
  • Relationships Overview
    • Object Relationships, Participants, Roles, Directionality, Cardinality
  • Relationship Mapping
    • Mapping Overview (1-1, 1-N, N-1, N-N)
    • Unidirectional and Bidirectional
    • Mapping One-One, One-Many and Many-Many
    • Join Columns
    • Relationship Inverses
    • Lazy and Eager Loading
    • Cascading
    • Queries Across Relationships (Inner Joins, Outer Joins, Fetch Joins)
    • JPA
  • Inheritance Mapping
    • Entity Inheritance
    • Single Table, Joined (Table per Subclass), Table per Concrete Class
    • Pros and Cons
Additional JPA Capabilities
  • Queries - Projection, Aggregate, Bulk Update/Delete
  • Embedded Objects
  • EJB 3 and Java SE
  • Best Practices
    • Primary Keys, Named Queries, Lazy/Eager Loading, Transactional Semantics, Encapsulation, Report Queries
Conclusion
Request Pricing

Lecture percentage

40%

Lecture/Demo

Lab percentage

60%

Lab

Course Number:

EJB-100

Duration:

4 Days

Prerequisites:

All attendees should have a solid Java™ programming experience. Some experience with distributed systems development, especially object-based systems such as Java RMI, CORBA, or COM, is a plus. Some knowledge of JDBC is helpful in understanding the EJB persistence model. Understanding of XML is a plus but is not needed.

Training Materials:

All EJB training students receive a copy of Apress' Beginning EJB 3 Application Development: From Novice to Professional, related courseware, and copies of all files developed during the class.

Software Requirements:

  • Windows XP or later, or Mac OS X 10.6 or later (Linux or Solaris accommodated upon request)
  • JDK 1.7 or later (1.6 can be accommodated upon request)
  • JBoss 5.1.x or Glassfish 3 or later; WebLogic, WebSphere, and other containers can be accommodated upon request
  • Development IDE of your choice; Eclipse recommended

Contact Us:

Accelebrate’s training classes are available for private groups of 3 or more people at your site or online anywhere worldwide.

Don't settle for a "one size fits all" public class! Have Accelebrate deliver exactly the training you want, privately at your site or online, for less than the cost of a public class.

For pricing and to learn more, please contact us.

Contact Us

Toll-free in US/Canada:
877 849 1850
International:
+1 678 648 3113

Toll-free in US/Canada:
866 566 1228
International:
+1 404 420 2491

925B Peachtree Street, NE
PMB 378
Atlanta, GA 30309-3918
USA

Subscribe to our Newsletter:

Never miss the latest news and information from Accelebrate:

Microsoft Gold Partner

Please see our complete list of
Microsoft Official Courses

Recent Training Locations

Alabama

Huntsville

Montgomery

Birmingham

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

San Francisco

Oakland

San Jose

Orange County

Los Angeles

Sacramento

San Diego

Colorado

Denver

Boulder

Colorado Springs

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Miami

Jacksonville

Orlando

Saint Petersburg

Tampa

Georgia

Atlanta

Augusta

Savannah

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Ceder Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

Banton Rouge

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Hagerstown

Frederick

Massachusetts

Springfield

Boston

Cambridge

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Saint Paul

Minneapolis

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Reno

Las Vegas

New Jersey

Princeton

New Mexico

Albuquerque

New York

Buffalo

Albany

White Plains

New York City

North Carolina

Charlotte

Durham

Raleigh

Ohio

Canton

Akron

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Tulsa

Oklahoma City

Oregon

Portland

Pennsylvania

Pittsburgh

Philadelphia

Rhode Island

Providence

South Carolina

Columbia

Charleston

Spartanburg

Greenville

Tennessee

Memphis

Nashville

Knoxville

Texas

Dallas

El Paso

Houston

San Antonio

Austin

Utah

Salt Lake City

Virginia

Richmond

Alexandria

Arlington

Washington

Tacoma

Seattle

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Edmonton

Calgary

British Columbia

Vancouver

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan

© 2013-2019 Accelebrate, Inc. All Rights Reserved. All trademarks are owned by their respective owners.