Home Contact Resources Training Profile Clients Careers


Introduction to EJB


Length: 4 days
CourseID: introEJB



Prerequisites:

Participants should have java development background. Familiarity with developing distributed applications is helpful. It is assumed that the students taking this class have completed the Advanced Java class, as well as the Servlets class. We will develop components requiring topics in both classes.


Overview:

The J2EE platform is Java’s answer to enterprise scalable applications. J2EE is composed of many different APIs. This class focuses on the Enterprise JavaBeans API. This is a hands-on learning experience, with each student having their own Server to learn with. This course can be delivered on Weblogic, Websphere, or JBoss Application Servers


Objectives:

  • Build J2EE applications using the EJB API
  • Build Session Beans
  • Build Entity Beans with CMP
  • Build Entity Beans with BMP
  • Design applications using EJBs
  • Develop Servlet Clients to work with EJBs
  • Create Message Driven Beans

  • Chapters:


    EJB and the J2EE Architecture

    The J2EE Solution The Enterprise JavaBean
    Application Server EJB Container

    Getting Started

    Defining the Bean Home Interface
    Remote Interface Compiling
    Deployment The Client
    Locating the Bean Running the Client

    Session Beans

    A Session Bean SessionBean State
    Stateless Session Beans Stateless Session Bean Lifecycle
    Stateful Session Beans Stateful Session Bean Lifecycle
    Packaging an Enterprise Application EJB Deployment Process
    The Deployment Descriptors weblogic-ejb-jar.xml
    weblogic-cmp-rdbms-jar.xml Compile, Bundling

    EJB Clients

    Client Types Deploying a Web Application
    The JNDI API Lookup with JNDI
    PortableRemoteObject.narrow Invoking Bean Methods

    Entity Beans

    An Entity Bean Persistence Models
    EntityBean Home Interface Finder Methods
    Primary Key Lifecycle of an Entity Bean
    Entity Beans and Local Interfaces

    Bean-Managed Persistence

    Why BMP? Create a Connection Pool
    Create a Datasource create method
    ejbRemove method ejbLoad method
    ejbStore methd Finder Methods
    BMP Deployment Descriptors

    Container-Managed Persistence

    Why CMP? ejb-jar.xml
    weblogic-ejb-jar.xml weblogic-cmp-rdbms-jar.xml
    Container-Managed Relationships Types of CMP Relationships
    EJBQL: Finders in CMP

    Transactions

    Transactions in EJB Container-Managed Transactions
    Transaction Support Attributes Bean-Managed Transactions
    Session Synchronization

    EJB Security

    Security Issues Authentication
    Authorization Securing Web Applications
    Security and Deployment Descriptor Bean-Managed Security
    Bean-Managed Security and Deployment Descript

    Message Driven Beans

    Introduction to Messaging What is JMS?
    Parent Interfaces Message Object
    Multi-Threading and JMS Exception PTP Domain and Interfaces
    Pub/Sub Domain and Interfaces Creating the Client
    Handling the Client Producing the Message