Live chat by BoldChat

Training for Application Development

Using EJB 3 with JBoss AS, Java Persistence etc.

This EJB 3.x course available covers both version 3.0 (JSR 220) and the new 3.1 (JSR 318). It covers everything you need to know to develop Enterprise Java Beans applications. Session Beans, Message Driven Beans, the Java Persistent API, Entities ORM handle EJB Transactions and implement EJB security are all covered in great depth. All technologies used are portrait on their architectural role. Best ractices and patterns are explained throughout the course.

Course Objectives

Designed for enterprise developers who wish to implement server-side business objects in Java, this lab-intensive training provides students with a solid understanding of the essentials of EJB using sound coding techniques and best programming practices. Our training is technology centric. Although a specific application server product will be used throughout the course, the comprehensive labs and lessons geared towards teaching advanced EJB programming techniques, rather than focusing on the finer points of the tools in use.

This course includes:

  • Covers EJB 3.0 and 3.1
  • Session Beans (life-cycle, programming model etc)
  • Deploying beans
  • EJB Session Bean Web Service provider
  • EJB Interceptors
  • Timer Service
  • Entities (Java Persistent API, JPA)
  • Java Message Server (JMS)
  • Message Driven Beans (MDB)
  • Transaction Management (BMT, CMT)

This an intermediate to advanced level Java training course, designed for developers who need to get up and running with advanced EJB programming skills immediately.

This is an advanced-level server-side Java course. People should be experienced with Java Technologies such as JNDI, JDBC, DataSources, Ideally attendees should have 8 -10 months, or more, experience with Java technologies.

Course Details:

ntroducing Enterprise JavaBeans™

  • Position Java EE and Enterprise JavaBeans
  • Explain the need for Enterprise JavaBeans
  • Define purpose of Enterprise JavaBeans.
  • Understand the key features of the EJB Specification.
  • Explain how EJB and CORBA relate
  • Explain how EJBs relate to “ordinary” JavaBeans.

Components of the EJB Architecture

  • List the four client types
  • List the primary components in an EJB server.
  • List services the container may provide to the bean.
  • List the four components the EJB developer is responsible for providing.
  • Describe ways session, entities and message driven beans differ.
  • Describe the relationship between Web Services and Enterprise Java Beans
  • Describe the purpose of the EJB jar file.
  • List the mandatory four objects per bean included in an EJB jar file.

Writing the business interface and implementation

  • Understand the life-cycle of a session bean
  • Describe the difference between a stateful and a stateless session bean.
  • Explain how the bean provider specifies the state management type.
  • Understand the semantics of a Business Interface
  • Writing beans with or without a Business Interface
  • Understand restrictions imposed on Remote Business Interfaces
  • Understand how to write EJB 3.0 Session Beans
  • List the different Life-cycle callback interceptor methods
  • Understand stateful session bean removal

Exception Handling

  • Explain the differences between a system error and an application error.
  • Explain which exceptions should be thrown to indicate system errors.
  • Explain which exceptions should be thrown to indicate application errors.
  • Describe how the container handles exceptions thrown by a bean.
  • Explain the @ApplicationException annotation
  • Preview effect of exceptions onContainer Transaction

Configuration and Deployment

  • Understand the overall structure of a ejb-jar deployment descriptor.
  • Show how to add environment information to the deployment descriptor.
  • Add bean and resource factory references.
  • Show how to provide assembly information, resolving references to external beans, web services and resource factories.
  • Understand dependency injection
  • Understand different ways of having a container inject values
  • Understand limitations of Java EE dependency injection
  • Understand alternatives to obtaining resources and beans
  • Successfully deploy a session bean to a server.
  • List benefits of using a deployment descriptor over annotations
  • Discuss what information is best placed in annotation, and what is best placed in the deployment descriptor.

Interceptors

  • Explain how to develop an interceptor
  • Explain default interceptors
  • "Apply" interceptors to bean method(s)

Timer Service (optional)

  • Understand the concept of Timer Services
  • Introduce the API

Introduction to Exposing a Session Bean as a Web service (Optional)

  • Show an example of how to implement a web service as a Stateless
  • Session Bean
  • Show how to write the web service endpoint
  • Show how to write the Session Bean implementation for a web service
  • endpoint
  • Understand the restrictions placed upon the arguments and return types.
  • Understand which clients can access your bean

Introduction to Entities

  • Explain Object to Relational (O/R) Mapping (ORM)
  • Explain the Java Persistence Architecture
  • List benefits of using Entities
  • Discuss the goals of Entities
  • List key functionalities of Entities
  • List the different Persistence types (entity and embeddable objects)

Getting started with Entities

  • Understand the nuts and bolts of Entities
  • Understand how to map an Entity to the database
  • Understand the configurations involved and their relationships
  • List different ways of packaging Entities
  • Understand the overall syntax of the peristence.xml Configuration file
  • Understand the overall syntax of a mapping file
  • Introduce the javax.persistence.EntityManager
  • Understand one way of obtain a reference to the Persistence Context
  • Supply a basic example of using Entities

Basic ORM

  • Configure persistent classes
  • Configure persistent state of a class
  • Understand the requirements on a persistent entity class
  • Understand Object identity in EJB
  • Discuss object identity and a caveat in hashCode and equals implementations
  • Discuss different ways of generating unique numbers for keys
  • Understand how to influence mapping to columns
  • Understand how to map properties of a class to multiple tables
  • Understand how to map composition using Embeddable classes

Entity associations (relations

  • List the different types of associations
  • Understand the difference between uni and bidirectional associations
  • Understand how to map unidirectional one to one, many to one and one to many associations
  • Understand how to and when to use join tables
  • Understand how to map many-to-many associations
  • Understand how to configure bidirectional associations
  • Understand how to cascade over associations

Mapping Inheritance

  • Discuss the three Inheritance ORM strategies
  • The Single Table Inheritance Pattern (aka table per class hierarchy)
  • Discuss the Class Table Inheritance Pattern (aka table per subclass)
  • Discuss the Concrete Table Inheritance Pattern (aka table per concrete class)
  • Discuss Strength and weaknesses of each strategy
  • Introduce the concept of Mapped Superclasses
  • Understand how to configure these mappings
  • Understand the concept of a discriminator

Fundamentals of EJB Transactions

  • Describe the need for transaction control.
  • Explain isolation levels.
  • List the isolation levels.
  • Explain which isolation levels should be used.
  • List the three styles of transaction management.
  • Explain relation between the Persistent Context EntityManager and transaction.
  • Understand Optimistic vs Pessimistic locking schemes
  • Implement Optimistic concurrency on Entities using versioning
  • Implement Pessimistic concurrency on Entities using Lock modes

Container-managed Transactions

  • List the six transaction attributes.
  • Name the annotations used to specify CMT.
  • Name the tag/value pair used in DD to specify CMT.
  • List which methods of session/entity beans (2.1) require transaction attributes to be specified in DD.
  • Explain how a bean would roll back a transaction.
  • Explain how transactions influence the container-managed transaction.
  • Explain the purpose of the SessionSynchronization interface.
  • Describe how each of the three methods in this interface provides transaction control to your bean.

Bean-managed Transactions

  • Correctly indicate in the DD that the bean will be managing its own transactional state.
  • Use the appropriate API in the bean to create and terminate transactions.
  • Explain the issues of BMT with stateful/stateless session beans.
  • Explain the issues of BMT with and EJB 2.1 Entity Beans.

Enterprise Java Beans Security

  • Define users, principals and roles.
  • Describe what security information is placed in DD.
  • Explain how container may provide security implementation.

Introduction to JMS

  • Understand what JMS is
  • Understand what JMS can be used for

Programming JMS

  • Understand the JMS API
  • Know the different message Domains
  • Understand the difference between Queues and Topics
  • See how to program a queue sender and receiver
  • Know the different messages
  • Understand message acknowledgment
  • Understand JMS Transactions
  • Understand the message header
  • Understand how to implement different messaging models

EJB3.0 Message-Driven Beans

  • Understand the life-cycle of a Message Driven Bean
  • Explain why message-driven beans do not have home or remote interfaces.
  • Understand how to write EJB 3.0 Message Driven Beans
Request a Quote

Featured Projects

Technical Expertise

Awards

Our Partners

Customer Talk

  • upSage Pastel has streamlined our financial operations. We have achieved stability with the system now and are satisfied with your support.up

    -Principal
    Institute of Social Works

  • upI would like to thanks and congratulate to you and your team who has performed very nice and swift action to fulfil this project in less time and efficient way.up

    -CEO
    Capital Markets and Securities Authority (CMSA)

  • upI have been impressed with your level of technical ability and the ease with which we can work together. I will certainly be recommending Web Technologies to others who need fast and well delivered applications.up

    -Executive Director
    Tanzania Education Authority (TEA)

  • upWe are very happy with the service Web Technologies provides. They are contactable twenty four hours a day, seven days a week and their response times are excellent, which keeps our down time to a minimum.up

    -Johannes Kahwa
    It Manager, Social Security Regulatory Authority ( SSRA)

  • upWeb Technologies have been overseeing the development of our University Website , Software and networks for over 5 years. Work is always completed to a high standards, on time and to budget. We have been very appreciative of the patient, friendly and reliable service.up

    -Elibariki Mushi (Head of ICT)
    Kampala International University (KIU)

Be Social with us

Terms of Service | Terms of Use | Privacy Policy | Connectivity

Articles | FAQ | Sitemap | Inquiry | Client Speaks | Contact | Blog | Partnership