Creating business logic with JPA and EJB 3.0

The training covers two most important parts of Java EE used for programming business logic: Enterprise Java Beans (EJB) and Java Persistence API (JPA) entities.

Besides exercises, the training also covers theoretical knowledge related to EJB and JPA, presentation of design patterns and anti-patterns and discussion of distributed transactions handling.

The training is for:

  • programmers that create multi-layered, distributed applications,
  • architects and designers of enterprise systems.

Prerequisites:

  • knowledge of Java and object-oriented programming,
  • prior participation in the training "Introduction to Java 5.0" is recommended,
  • basic knowledge of databases and SQL.

By the end of the training participants will have learned:

  • how to serialize objects with JPA,
  • how to create EJB components and when to use them,
  • advantages of multi-layered architecture,
  • typical problems that occur during creation of server-side applications, as well as their standard solutions.

Training duration: 3 days.

Methodology: lectures and exercises. A lot of practical examples are presented, discussed, tested and extended by the trainees. Trainees actively participate in the training.

Training outline:

Day 1.

  1. Persistence of data in Java.
  2. Using Java Persistence API (JPA) entities, synchronization with a database, uniqueness of entities, comparing entities, life-cycle and callback methods.
  3. Representing class hierarchies in a database, inheritance, polymorphism, composition.
  4. EJB-QL queries.

Day 2.

  1. Introduction to multi-layered architecture and distributed applications.
  2. Component types in Enterprise Java Beans 3.0 (EJB).
  3. Stateful and stateless Session Beans.
  4. Life-cycle and callback methods.
  5. Combining Session Beans and JPA entities.
  6. Transactions, performance.
  7. Protecting EJB components, roles.
  8. Patterns and anti-patterns.

Dzień 3.

  1. Introduction to JNDI and Dependency injection.
  2. Asynchronous communication with messages in Point-to-Point and Publish-Subscribe models.
  3. Java Message Service (JMS).
  4. Message Driven Beans (MDB).
  5. Confirming messages, transactions and security.
 
home contact
  • Polish
  • English